Vulnerability · Published Oct 21, 2026 · Assigned by GitHub_M
CVE-2026-114125Storybook: Missing origin validation in Storybook preview allows code injection from malicious websites
High 8.6
In plain English
A high-severity code injection in storybook from storybookjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Storybook is a frontend workshop for building user interface components and pages in isolation. From 8.0.0 until 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6, a malicious website can interact with the preview of a running Storybook development server. Insufficient iframe embedding and message-origin restrictions can allow attacker-controlled events to reach the running preview. A developer must visit the malicious website and interact with the injected interface. The attack can cause unauthorized changes to story files and, if a changed file is later executed by a local runtime, arbitrary code execution with the developer's privileges. This issue is fixed in 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @storybook/addon-mcp | 10.6.2 | GHSA-f2ph-cmg5-wxc8 |
| npm | @storybook/addon-mcp | 11.0.0-alpha.6 | GHSA-f2ph-cmg5-wxc8 |
| npm | @storybook/addon-vitest | 11.0.0-alpha.6 | GHSA-f2ph-cmg5-wxc8 |
| npm | @storybook/addon-vitest | 9.1.21 | GHSA-f2ph-cmg5-wxc8 |
| npm | @storybook/addon-vitest | 10.6.2 | GHSA-f2ph-cmg5-wxc8 |
| npm | @storybook/core | 8.6.19 | GHSA-f2ph-cmg5-wxc8 |
| npm | @storybook/core-server | 8.6.19 | GHSA-f2ph-cmg5-wxc8 |
| npm | @storybook/experimental-addon-test | 8.6.19 | GHSA-f2ph-cmg5-wxc8 |
| npm | storybook | 8.6.19 | GHSA-f2ph-cmg5-wxc8 |
| npm | storybook | 11.0.0-alpha.6 | GHSA-f2ph-cmg5-wxc8 |
| npm | storybook | 10.6.2 | GHSA-f2ph-cmg5-wxc8 |
| npm | storybook | 9.1.21 | GHSA-f2ph-cmg5-wxc8 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| storybookjs | storybook | >= 8.0.0, < 8.6.19>= 9.0.0, < 9.1.21>= 10.0.0, < 10.6.2>= 11.0.0-alpha.0, < 11.0.0-alpha.6 |
Weakness: CWE-94, CWE-346, CWE-1021 · Vector: 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
References
- https://github.com/storybookjs/storybook/security/advisories/GHSA-f2ph-cmg5-wxc8 x_refsource_CONFIRM
- https://github.com/storybookjs/storybook/pull/36726 x_refsource_MISC
- https://github.com/storybookjs/storybook/commit/243c06bf8f1e2f09446c44868ea100261e1374da x_refsource_MISC
- https://github.com/storybookjs/storybook/commit/3be03ec6f11f4616471cebc3fc65c13e1bf8c178 x_refsource_MISC
- https://github.com/storybookjs/storybook/commit/97513d999910d071c2b36830495dab63e17d9fe0 x_refsource_MISC
- https://github.com/storybookjs/storybook/commit/d9b09e332510a88689c71ecc081bbbc2d072476e x_refsource_MISC
- https://github.com/storybookjs/storybook/commit/df3fed468c9b4830605f00068c4bc6b7e1e215ed x_refsource_MISC
- https://github.com/storybookjs/storybook/releases/tag/v10.6.2 x_refsource_MISC
- https://github.com/storybookjs/storybook/releases/tag/v11.0.0-alpha.6 x_refsource_MISC
- https://github.com/storybookjs/storybook/releases/tag/v8.6.19 x_refsource_MISC
- https://github.com/storybookjs/storybook/releases/tag/v9.1.21 x_refsource_MISC