{"id":78662,"date":"2026-05-20T17:47:04","date_gmt":"2026-05-20T14:17:04","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-8467-unauthenticated-remote-code-execution-via-heex-template-injection-in-phoenix_storybook-playground\/"},"modified":"2026-05-20T17:47:04","modified_gmt":"2026-05-20T14:17:04","slug":"cve-2026-8467-unauthenticated-remote-code-execution-via-heex-template-injection-in-phoenix_storybook-playground","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-8467-unauthenticated-remote-code-execution-via-heex-template-injection-in-phoenix_storybook-playground\/","title":{"rendered":"CVE-2026-8467 &#8211; Unauthenticated remote code execution via HEEx template injection in phoenix_storybook playground"},"content":{"rendered":"<p>CVE ID :CVE-2026-8467<\/p>\n<p>  Published : May 20, 2026, 2:17 p.m. | 40\u00a0minutes ago<\/p>\n<p>  Description :Code Injection vulnerability in phenixdigital phoenix_storybook allows unauthenticated remote code execution via unsanitized attribute value interpolation in HEEx template generation.<\/p>\n<p>The psb-assign WebSocket event handler in &#8216;Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive&#8217;:handle_event\/3 accepts arbitrary attribute names and values from unauthenticated clients. These values are passed to &#8216;Elixir.PhoenixStorybook.Helpers.ExtraAssignsHelpers&#8217;:handle_set_variation_assign\/3, which stores them verbatim. When rendering, &#8216;Elixir.PhoenixStorybook.Rendering.ComponentRenderer&#8217;:attributes_markup\/1 interpolates binary attribute values directly into a HEEx template string as name=&#8221;&#8221; without escaping double quotes or HEEx expression delimiters. An attacker can supply a value containing a closing quote followed by a HEEx expression block (e.g. foo&#8221; injected={EXPR} bar=&#8221;), which causes EXPR to be treated as an inline Elixir expression. The resulting template is compiled via EEx.compile_string\/2 and executed via Code.eval_quoted_with_env\/3 with full Kernel imports and no sandbox, giving the attacker arbitrary code execution on the server.<\/p>\n<p>This issue affects phoenix_storybook from 0.5.0 before 1.1.0.<\/p>\n<p>  Severity: 9.5 | CRITICAL<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-8467 Published : May 20, 2026, 2:17 p.m. | 40\u00a0minutes ago Description :Code Injection vulnerability in phenixdigital phoenix_storybook allows unauthenticated remote code execution via unsanitized attribute value interpolation in HEEx template generation. The psb-assign WebSocket event handler in &#8216;Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive&#8217;:handle_event\/3 accepts arbitrary attribute names and values from unauthenticated clients. These values are passed to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-78662","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=78662"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78662\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=78662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=78662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=78662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}