High · 8.7 Node.js & npm GHSA-f2ph-cmg5-wxc8 CVE-2026-114125 GHSA-px85-f4q5-jh77 CVE-2026-114126
Two Storybook Vulnerabilities Allow Code Execution via Malicious Websites or Local Network Attackers
Storybook development servers before 8.6.19, 9.1.21, and 10.6.2 contain two separate flaws — one allowing malicious websites to inject code into the running preview, the other allowing local network attackers to abuse an exposed WebSocket token — both of which can lead to code execution with a developer's privileges.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
Storybook, a widely used tool for building and testing UI components in isolation, has disclosed two related security issues affecting its development server. Both involve insufficient restrictions on who can interact with a running Storybook preview, and both can ultimately allow code to execute with the privileges of the developer running Storybook. Fixed versions are available for all affected release lines.
What happened
Two vulnerabilities were disclosed in Storybook. The first, CVE-2026-114125, stems from insufficient iframe embedding and message-origin restrictions in the Storybook preview. A malicious website can interact with a running Storybook development server if a developer visits that website and interacts with content it injects. This can cause unauthorized changes to story files. The second, CVE-2026-114126, involves the Storybook development server exposing its WebSocket authentication token to clients that can load its HTML pages over a local network. An attacker on the same network can obtain this token and invoke WebSocket-backed file-writing or testing functionality, combined with weak story-write validation, to place code into story files.
Technical cause
CVE-2026-114125 is rooted in missing origin validation: the Storybook preview does not sufficiently restrict which origins can embed it in an iframe or send it messages, allowing attacker-controlled events from an external website to reach the preview. CVE-2026-114126 is a path traversal issue (CWE-22) combined with an authentication token exposure: the WebSocket token used to authorize file-writing and testing operations can be read by any client able to load the dev server's HTML pages on the local network, and weak validation on story-file writes allows that access to be abused to inject code. In the CVE-2026-114126 scenario, if the Storybook Vitest addon is installed alongside an outdated version of Vitest, the injected payload can further use a Vitest API to write additional files or execute commands.
Why it matters
Both issues can result in arbitrary code execution with the privileges of the developer running the affected Storybook instance, if a modified story file is later executed by a local runtime. This makes the vulnerabilities relevant beyond the development environment itself, since compromised story files could affect build pipelines or local tooling. CVE-2026-114125 requires a developer to visit a malicious website and interact with injected content, while CVE-2026-114126 requires an attacker to be positioned on the same local network as the developer's machine.
Who is affected
Developers and teams running Storybook development servers using the `storybook`, `@storybook/core`, `@storybook/core-server`, `@storybook/experimental-addon-test`, `@storybook/addon-vitest`, or `@storybook/addon-mcp` packages in the affected version ranges are at risk. CVE-2026-114126 additionally requires the Storybook Vitest addon to be combined with an outdated Vitest version for the code-execution path to be fully exploitable, though the WebSocket token exposure and weak story-write validation affect the development server regardless.
Affected versions
For both CVE-2026-114125 and CVE-2026-114126: `storybook`, `@storybook/core`, `@storybook/core-server`, and `@storybook/experimental-addon-test` are affected from version 8.0.0 up to but not including 8.6.19. `@storybook/addon-vitest` (and `storybook` more broadly) is affected from version 9.0.0 up to but not including 9.1.21, and from version 10.0.0 up to but not including 10.6.2. `@storybook/addon-mcp` is affected from version 10.6.0 up to but not including 10.6.2. All packages are also affected from 11.0.0-alpha.0 up to but not including 11.0.0-alpha.6.
Fixes and mitigation
Fixes are available for both vulnerabilities in the same set of releases: 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6. Teams should upgrade the affected `storybook`, `@storybook/core`, `@storybook/core-server`, `@storybook/experimental-addon-test`, `@storybook/addon-vitest`, and `@storybook/addon-mcp` packages to these fixed versions or later within their respective release lines.
Recommended action
Upgrade Storybook and related addon packages to the fixed versions listed above as soon as practical. Because CVE-2026-114126 relies on local network access to the development server, teams should also consider restricting network exposure of running Storybook instances (for example, binding to localhost or using network-level access controls) as a complementary precaution while rolling out the update. Since CVE-2026-114125 requires visiting a malicious website while Storybook is running, standard browsing caution during active development sessions is advisable.
PatchBriefing score
8.7 / 10 · High
Official CVSS: 8.6
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS 0.0044 (30 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- storybook >= 11.0.0-alpha.0, < 11.0.0-alpha.6
- vulnerable
- storybook ≥ 11.0.0-alpha.0 < 11.0.0-alpha.6
- vulnerable
- ≥ 10.6.2
- patched
- ≥ 11.0.0-alpha.6
- patched
- ≥ 8.6.19
- patched
- ≥ 9.1.21
- patched
- @storybook/core >= 8.0.0, < 8.6.19
- vulnerable
- @storybook/core ≥ 8.0.0 < 8.6.19
- vulnerable
- ≥ 8.6.19
- patched
- @storybook/core-server >= 8.0.0, < 8.6.19
- vulnerable
- @storybook/core-server ≥ 8.0.0 < 8.6.19
- vulnerable
- ≥ 8.6.19
- patched
- @storybook/experimental-addon-test >= 8.0.0, < 8.6.19
- vulnerable
- @storybook/experimental-addon-test ≥ 8.0.0 < 8.6.19
- vulnerable
- ≥ 8.6.19
- patched
- @storybook/addon-vitest >= 11.0.0-alpha.0, < 11.0.0-alpha.6
- vulnerable
- @storybook/addon-vitest ≥ 11.0.0-alpha.0 < 11.0.0-alpha.6
- vulnerable
- ≥ 10.6.2
- patched
- ≥ 11.0.0-alpha.6
- patched
- ≥ 9.1.21
- patched
- @storybook/addon-mcp >= 11.0.0-alpha.0, < 11.0.0-alpha.6
- vulnerable
- @storybook/addon-mcp ≥ 11.0.0-alpha.0 < 11.0.0-alpha.6
- vulnerable
- ≥ 10.6.2
- patched
- ≥ 11.0.0-alpha.6
- patched
- storybook >= 11.0.0-alpha.0, < 11.0.0-alpha.6
- vulnerable
- storybook ≥ 11.0.0-alpha.0 < 11.0.0-alpha.6
- vulnerable
- ≥ 10.6.2
- patched
- ≥ 11.0.0-alpha.6
- patched
- ≥ 8.6.19
- patched
- ≥ 9.1.21
- patched
- @storybook/core >= 8.0.0, < 8.6.19
- vulnerable
- @storybook/core ≥ 8.0.0 < 8.6.19
- vulnerable
- ≥ 8.6.19
- patched
- @storybook/core-server >= 8.0.0, < 8.6.19
- vulnerable
- @storybook/core-server ≥ 8.0.0 < 8.6.19
- vulnerable
- ≥ 8.6.19
- patched
- @storybook/experimental-addon-test >= 8.0.0, < 8.6.19
- vulnerable
- @storybook/experimental-addon-test ≥ 8.0.0 < 8.6.19
- vulnerable
- ≥ 8.6.19
- patched
- @storybook/addon-vitest >= 11.0.0-alpha.0, < 11.0.0-alpha.6
- vulnerable
- @storybook/addon-vitest ≥ 11.0.0-alpha.0 < 11.0.0-alpha.6
- vulnerable
- ≥ 10.6.2
- patched
- ≥ 11.0.0-alpha.6
- patched
- ≥ 9.1.21
- patched
- @storybook/addon-mcp >= 11.0.0-alpha.0, < 11.0.0-alpha.6
- vulnerable
- @storybook/addon-mcp ≥ 11.0.0-alpha.0 < 11.0.0-alpha.6
- vulnerable
- ≥ 10.6.2
- patched
- ≥ 11.0.0-alpha.6
- patched
Reported fixes
Fixes are available for both vulnerabilities in the same set of releases: 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6. Teams should upgrade the affected `storybook`, `@storybook/core`, `@storybook/core-server`, `@storybook/experimental-addon-test`, `@storybook/addon-vitest`, and `@storybook/addon-mcp` packages to these fixed versions or later within their respective release lines.
How this was built
6 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
OSV.dev database
-
NVD (NIST) database
-
NVD (NIST) database
-
GitHub Advisory Database database
-
OSV.dev database
Revision history
- Published
- Generated
- Merged
- Published
- Generated
- Published
- Generated