CVE-2026-27148: Storybook Dev Server Vulnerable to WebSocket Hijacking
Vulnerability summary
CVE-2026-27148 is a critical (CVSS 9.6) vulnerability in storybook. EPSS estimates a 0.63% chance of exploitation in the next 30 days, higher than 51.2% of scored vulnerabilities.
Not severe (CVSS 8.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 25-02-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
Description
Storybook is a frontend workshop for building user interface components and pages in isolation. Prior to versions 7.6.23, 8.6.17, 9.1.19, and 10.2.10, the WebSocket functionality in Storybook's dev server, used to create and update stories, is vulnerable to WebSocket hijacking. This vulnerability only affects the Storybook dev server; production builds are not impacted. Exploitation requires a developer to visit a malicious website while their local Storybook dev server is running. Because the WebSocket connection does not validate the origin of incoming connections, a malicious site can silently send WebSocket messages to the local instance without any further user interaction. If the Storybook dev server is intentionally exposed publicly (e.g. for design reviews or stakeholder demos) the risk is higher, as no malicious site visit is required. Any unauthenticated attacker can send WebSocket messages to it directly. The vulnerability affects the WebSocket message handlers for creating and saving stories. Both are vulnerable to injection via unsanitized input in the componentFilePath field, which can be exploited to achieve persistent XSS or Remote Code Execution (RCE). Versions 7.6.23, 8.6.17, 9.1.19, and 10.2.10 contain a fix for the issue.
CVSS metrics
5 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated8.9HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- NVDNIST8.9HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVE.orgCNA8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:HDiffers
EPSS trend
Probability
0.63%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.62% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream ComponentThe product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
- CWE-79Improper Neutralization of Input During Web Page GenerationThe product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- CWE-346Origin Validation ErrorThe product does not properly verify that the source of data or communication is valid.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Npm1 product
- storybook≥ 8.1.0, < 8.6.17 | ≥ 8.7.0-alpha.0, < 9.1.19 | ≥ 10.0.0-beta.0, < 10.2.10
Storybook1 product
- storybook< 7.6.23 | ≥ 8.1.0, < 8.6.17 | ≥ 9.0.0, < 9.1.19 | ≥ 10.0.0, < 10.2.10
Storybookjs1 product
- storybook< 7.6.23 | ≥ 8.1.0, < 8.6.17 | ≥ 9.0.0, < 9.1.19 | ≥ 10.0.0, < 10.2.10
3 vendors · 3 products
References
14 links- github.com/storybookjs/storybook/security/advisories/GHSA-mjf5-7g4m-gx5wX Refsource CONFIRMWEBVendor Advisory
- github.com/storybookjs/storybook/commit/0affdf928bd6fafbadfb1dfe22ce6104805e10e8X Refsource MISCWEBPatch
- github.com/storybookjs/storybook/commit/54689a8add18ea75d628c540f4bc677592a1e685X Refsource MISCWEBPatch
- github.com/storybookjs/storybook/commit/b8cfa77c73940c140acdcd8a06ab1ea913c44761X Refsource MISCWEBPatch
- github.com/storybookjs/storybook/commit/d34085f39c647f5c23c3a3b2d197c18602fcf876X Refsource MISCWEBPatch