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.
Severity (CVSS)
| Base score | 8.6 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-94 — CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-346 — CWE-346: Origin Validation Error
- CWE-1021 — CWE-1021: Improper Restriction of Rendered UI Layers or Frames
Affected products
| Vendor | Product | Versions |
|---|---|---|
| storybookjs | storybook | >= 8.0.0, < 8.6.19 [affected]; >= 9.0.0, < 9.1.21 [affected]; >= 10.0.0, < 10.6.2 [affected]; >= 11.0.0-alpha.0, < 11.0.0-alpha.6 [affected] |
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)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 22 Oct 2026 07:04 UTC.