@chromatic-com/storybook is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor
75
CVE Score
High
Exposure of Sensitive Information to an Unauthorized Actor
@chromatic-com/storybook adds handlers to the WebSocket of storybook dev and does not check which client sent an event. A connected client can send a URL that ChannelFetch passes to fetch, including any method, headers, and body, and the server returns the response on the socket. The handler also sends every client the full getGitInfo() result, including userEmail, committerEmail, and repositoryRootDir, and the contents of chromatic.config.json, including projectToken, and it writes a client-supplied projectId into that file after a project is already linked. The fix removes the fetch relay, shares only the git fields the manager reads, masks projectToken, and ignores a new projectId once a project is linked.
Upgrade the @chromatic-com/storybook library to the patch version. Rotate any projectToken that was stored in chromatic.config.json.
You are affected if you are using a version that falls within the vulnerable range and you run storybook dev with this addon while the dev server is reachable from another device or another website.
0.0.124 - 3.2.7
Fixed in 3.2.84.0.0 - 4.1.3
Fixed in 4.1.45.0.0 - 5.5.0
Fixed in 5.5.1@chromatic-com/storybook is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in versions 0.0.124 - 3.2.7, 4.0.0 - 4.1.3 and 5.0.0 - 5.5.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.