Code execution via origin-unchecked WebSocket messages
Published Feb 25, 2026 · Updated Feb 25, 2026
WebSocket hijacking in affected Storybook releases allows remote attackers to inject code into story source files through the dev server. The create and save message handlers accept componentFilePath from WebSocket clients without origin validation or input sanitization, then write attacker-controlled payloads into story files. A local attack requires a developer to visit a malicious site while the server runs; a publicly exposed server is directly reachable, and server-side code execution requires non-default portable stories in JSDOM.
Summary
What happened
WebSocket hijacking in affected Storybook releases allows remote attackers to inject code into story source files through the dev server. The create and save message handlers accept componentFilePath from WebSocket clients without origin validation or input sanitization, then write attacker-controlled payloads into story files. A local attack requires a developer to visit a malicious site while the server runs; a publicly exposed server is directly reachable, and server-side code execution requires non-default portable stories in JSDOM.
The record
- CVE
- CVE-2026-27148
- Published
- Feb 25, 2026
- Updated
- Feb 25, 2026
- Vendor
- Storybook
- Product
- Storybook
- Classifications
- CWE-1385, CWE-346, CWE-79, CWE-74, T1190, T1189
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 25, 2026CVE publishedPublication date reported by the CVE source.
- Feb 25, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 10.0.0, < 10.2.10
- Affected versionversion=< 7.6.23
- Affected versionversion=>= 8.1.0, < 8.6.17
- Affected versionversion=>= 9.0.0, < 9.1.19
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo