Storybook: Missing origin validation in Storybook preview allows code injection from malicious websites
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 8.6.19, 9.1.21, 10.6.2, 11.0.0-alpha.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- storybookjs storybook
From 8.0.0 · fixed in 8.6.19; From 9.0.0 · fixed in 9.1.21; From 10.0.0 · fixed in 10.6.2; From 11.0.0-alpha.0 · fixed in 11.0.0-alpha.6
- storybooknpm
From 8.0.0 · fixed in 8.6.19
- storybooknpm
From 9.0.0 · fixed in 9.1.21
- storybooknpm
From 10.0.0 · fixed in 10.6.2
- storybooknpm
From 11.0.0-alpha.0 · fixed in 11.0.0-alpha.6
- @storybook/corenpm
From 8.0.0 · fixed in 8.6.19
- @storybook/core-servernpm
From 8.0.0 · fixed in 8.6.19
- @storybook/experimental-addon-testnpm
From 8.0.0 · fixed in 8.6.19
- @storybook/addon-vitestnpm
From 9.0.0 · fixed in 9.1.21
- @storybook/addon-vitestnpm
From 10.0.0 · fixed in 10.6.2
- @storybook/addon-vitestnpm
From 11.0.0-alpha.0 · fixed in 11.0.0-alpha.6
- @storybook/addon-mcpnpm
From 10.6.0 · fixed in 10.6.2
- @storybook/addon-mcpnpm
From 11.0.0-alpha.0 · fixed in 11.0.0-alpha.6