Every CVE Search/ Get API key

CVE-2026-27148

Storybook Dev Server Vulnerable to WebSocket Hijacking

8.9 HighFix available

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

0.63%Up 0.3 points since Feb 26, 2026
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS 3.1
8.8 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
storybook
npm
8.1.0 up to 8.6.17
8.6.17
storybook
npm
8.7.0-alpha.0 up to 9.1.19
9.1.19
storybook
npm
10.0.0-beta.0 up to 10.2.10
10.2.10
storybook
TuxCare: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-loader
TuxCare: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-plugin
TuxCare: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-actions
TuxCare: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-essentials
TuxCare: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/core
TuxCare: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-tools
TuxCare:npm
8.6.14-tuxcare.0 up to 8.6.14-tuxcare.1, plus listed versions
8.6.14
8.6.14-tuxcare.1
storybook
Root:npm
before 9.1.15-aikido.1
9.1.15-aikido.18.6.17-aikido.1
@rootio/storybook
Root:npm
before 9.1.15-root.io.1
9.1.15-root.io.18.6.17-root.io.1

History

History
RecordedChangedSources
affected
first indexedCVE 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

Show 10 moreShow less
MoveEnter Open