CVE-2026-27148
Storybook Dev Server Vulnerable to WebSocket Hijacking
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Active
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.9
Storybook Dev Server Vulnerable to WebSocket Hijacking
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.
- Record
CVE-2026-27148- CVSS 4.0
- 8.9 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H - Weakness
- CWE-74, CWE-79, CWE-346
- Updated
- 2026-11-02
EUVDEUVD-2026-8750
8.9
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.
- Record
EUVD-2026-8750- CVSS 4.0
- 8.9 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-mjf5-7g4m-gx5w
8.9
Storybook Dev Server is Vulnerable to WebSocket Hijacking
Summary
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.
Details
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 a 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, which can be exploited via unauthorized WebSocket connections to achieve persistent XSS or Remote Code Execution (RCE).
Note: recent versions of Chrome have some protections against this, but Firefox does not.
Impact
This vulnerability can lead to supply chain compromise. Key risks include:
- Remote Code Execution: The vulnerability can allow attackers to execute malicious code, with the extent of impact depending on the configuration. Server-side RCE is possible in non-default configurations, such as when stories are executed via portable stories in JSDOM, potentially allowing attackers to exfiltrate credentials and environment variables, access source code and the filesystem, establish backdoors, or pivot to internal network resources.
- Persistent XSS: Malicious payloads are written directly into story source files. If the malicious payload is committed to version control, it becomes part of the codebase and can propagate to deployed Storybook documentation sites, affecting developers and stakeholders who view them.
- Supply Chain Propagation: If the modified source files are committed, injected code can spread to other team members via git, execute in CI/CD pipelines, and affect shared component libraries used across multiple projects.
Affected versions
8.1 and above. While the exploitable functionality was introduced in 8.1, the patch has been applied to 7.x as a precautionary measure given the underlying WebSocket behaviour.
Recommended actions
Update to one of the patched versions: 7.6.23, 8.6.17, 9.1.19, 10.2.10.
- Record
GHSA-mjf5-7g4m-gx5w- CVSS 4.0
- 8.9 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Weakness
- CWE-74, CWE-79, CWE-1385
- Updated
- 2026-11-02
NVD
8.9
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.
- Record
CVE-2026-27148- CVSS 4.0
- 8.9 High
CVSS: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 - CVSS 3.1
- 9.6 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H - Weakness
- CWE-74, CWE-79, CWE-346
- Updated
- 2026-11-02
OSV
8.9
Storybook Dev Server Vulnerable to WebSocket Hijacking
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.
- Record
CVE-2026-27148- CVSS 4.0
- 8.9 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Weakness
- CWE-74, CWE-79
- Updated
- 2026-11-02
OSVGHSA-mjf5-7g4m-gx5w
8.9
Storybook Dev Server is Vulnerable to WebSocket Hijacking
Summary
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.
Details
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 a 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, which can be exploited via unauthorized WebSocket connections to achieve persistent XSS or Remote Code Execution (RCE).
Note: recent versions of Chrome have some protections against this, but Firefox does not.
Impact
This vulnerability can lead to supply chain compromise. Key risks include:
- Remote Code Execution: The vulnerability can allow attackers to execute malicious code, with the extent of impact depending on the configuration. Server-side RCE is possible in non-default configurations, such as when stories are executed via portable stories in JSDOM, potentially allowing attackers to exfiltrate credentials and environment variables, access source code and the filesystem, establish backdoors, or pivot to internal network resources.
- Persistent XSS: Malicious payloads are written directly into story source files. If the malicious payload is committed to version control, it becomes part of the codebase and can propagate to deployed Storybook documentation sites, affecting developers and stakeholders who view them.
- Supply Chain Propagation: If the modified source files are committed, injected code can spread to other team members via git, execute in CI/CD pipelines, and affect shared component libraries used across multiple projects.
Affected versions
8.1 and above. While the exploitable functionality was introduced in 8.1, the patch has been applied to 7.x as a precautionary measure given the underlying WebSocket behaviour.
Recommended actions
Update to one of the patched versions: 7.6.23, 8.6.17, 9.1.19, 10.2.10.
- Record
GHSA-mjf5-7g4m-gx5w- CVSS 4.0
- 8.9 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Weakness
- CWE-1385, CWE-74, CWE-79
- Updated
- 2026-11-02
Show 9 moreShow less
OSVCLSA-2026-1785380885 No score
TuxCare security update for storybook (2 CVEs)
TuxCare rebuilt storybook to address 2 CVEs. Fixed in 10.1.9-tuxcare.1.
- Record
CLSA-2026-1785380885- Updated
- 2026-11-02
OSVCLSA-2026-1789548202 No score
TuxCare security update for 7 packages (1 CVE)
TuxCare rebuilt 7 packages to address 1 CVE. Fixed in 8.5.8-tuxcare.1.
- Record
CLSA-2026-1789548202- Updated
- 2026-11-02
OSVCLSA-2026-1792221531 No score
TuxCare security update for @storybook/source-loader (1 CVE)
TuxCare rebuilt @storybook/source-loader to address 1 CVE. Fixed in 8.5.8-tuxcare.1.
- Record
CLSA-2026-1792221531- Updated
- 2026-11-02
OSVCLSA-2026-1792329950 No score
TuxCare security update for @storybook/csf-plugin (1 CVE)
TuxCare rebuilt @storybook/csf-plugin to address 1 CVE. Fixed in 8.5.8-tuxcare.1.
- Record
CLSA-2026-1792329950- Updated
- 2026-11-02
OSVCLSA-2026-1792372482 No score
TuxCare security update for @storybook/addon-actions (1 CVE)
TuxCare rebuilt @storybook/addon-actions to address 1 CVE. Fixed in 8.5.8-tuxcare.1.
- Record
CLSA-2026-1792372482- Updated
- 2026-11-02
OSVCLSA-2026-1792383181 No score
TuxCare security update for @storybook/addon-essentials (1 CVE)
TuxCare rebuilt @storybook/addon-essentials to address 1 CVE. Fixed in 8.5.8-tuxcare.1.
- Record
CLSA-2026-1792383181- Updated
- 2026-11-02
OSVCLSA-2026-1792438529 No score
TuxCare security update for @storybook/core (1 CVE)
TuxCare rebuilt @storybook/core to address 1 CVE. Fixed in 8.5.8-tuxcare.1.
- Record
CLSA-2026-1792438529- Updated
- 2026-11-02
OSVCLSA-2026-1792759925 No score
TuxCare security update for @storybook/csf-tools (2 CVEs)
TuxCare rebuilt @storybook/csf-tools to address 2 CVEs. Fixed in 8.6.14-tuxcare.1.
- Record
CLSA-2026-1792759925- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2026-27148 No score
CVE-2026-27148 in storybook - Patched by Root
Root has patched CVE-2026-27148 in the storybook package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2026-27148- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
storybooknpm |
8.1.0 up to 8.6.17 | 8.6.17 |
storybooknpm |
8.7.0-alpha.0 up to 9.1.19 | 9.1.19 |
storybooknpm |
10.0.0-beta.0 up to 10.2.10 | 10.2.10 |
storybookTuxCare:npm |
10.1.9-tuxcare.0 up to 10.1.9-tuxcare.1, plus listed versions 10.1.9 |
10.1.9-tuxcare.1 |
@storybook/source-loaderTuxCare:npm |
8.5.8-tuxcare.0 up to 8.5.8-tuxcare.1, plus listed versions 8.5.8 |
8.5.8-tuxcare.1 |
@storybook/csf-pluginTuxCare:npm |
8.5.8-tuxcare.0 up to 8.5.8-tuxcare.1, plus listed versions 8.5.8 |
8.5.8-tuxcare.1 |
@storybook/addon-actionsTuxCare:npm |
8.5.8-tuxcare.0 up to 8.5.8-tuxcare.1, plus listed versions 8.5.8 |
8.5.8-tuxcare.1 |
@storybook/addon-essentialsTuxCare:npm |
8.5.8-tuxcare.0 up to 8.5.8-tuxcare.1, plus listed versions 8.5.8 |
8.5.8-tuxcare.1 |
@storybook/coreTuxCare:npm |
8.5.8-tuxcare.0 up to 8.5.8-tuxcare.1, plus listed versions 8.5.8 |
8.5.8-tuxcare.1 |
@storybook/csf-toolsTuxCare:npm |
8.6.14-tuxcare.0 up to 8.6.14-tuxcare.1, plus listed versions 8.6.14 |
8.6.14-tuxcare.1 |
storybookRoot:npm |
before 9.1.15-aikido.1 | 9.1.15-aikido.18.6.17-aikido.1 |
@rootio/storybookRoot:npm |
before 9.1.15-root.io.1 | 9.1.15-root.io.18.6.17-root.io.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-27148 is a high vulnerability (CVSS 8.9) in Storybook, published February 25, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.63%, the 50th percentile. Fixed in storybook 8.6.17.
References
github.com/storybookjs/storybook/security/advisories/GHSA-mjf5-7g4m-gx5w
github.com/storybookjs/storybook/commit/0affdf928bd6fafbadfb1dfe22ce6104805e10e8
github.com/storybookjs/storybook/commit/54689a8add18ea75d628c540f4bc677592a1e685
github.com/storybookjs/storybook/commit/b8cfa77c73940c140acdcd8a06ab1ea913c44761
github.com/storybookjs/storybook/commit/d34085f39c647f5c23c3a3b2d197c18602fcf876
github.com/storybookjs/storybook/releases/tag/v10.2.10
Show 10 moreShow less
github.com/storybookjs/storybook/releases/tag/v7.6.23
github.com/storybookjs/storybook/releases/tag/v8.6.17
github.com/storybookjs/storybook/releases/tag/v9.1.19
access.redhat.com/security/cve/CVE-2026-27148
bugzilla.redhat.com/show_bug.cgi?id=2442784
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27148.json
nvd.nist.gov/vuln/detail/CVE-2026-27148
github.com/advisories/GHSA-mjf5-7g4m-gx5w
github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27148.json
github.com/storybookjs/storybook