Storybook dev server: devices on the same network can obtain the WebSocket token and write code into story files
- 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: yes
- 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, the Storybook development server can expose its WebSocket authentication token to clients able to load its HTML pages over a local network. A LAN attacker can obtain the token and invoke WebSocket-backed file-writing or testing functionality. Weak story-write validation can allow code to be placed in story files. If the Storybook Vitest addon is installed with an old version of Vitest, the payload can use a Vitest API to write additional files or execute commands. Depending on the payload and local tooling, the attack can lead to 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: yes · 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