Skip to content

chore(deps): update dependency storybook to v8.6.17 [security] - #245

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-storybook-vulnerability
Open

chore(deps): update dependency storybook to v8.6.17 [security]#245
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-storybook-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
storybook (source) 8.6.88.6.17 age confidence

Storybook manager bundle may expose environment variables during build

CVE-2025-68429 / GHSA-8452-54wp-rmv6

More information

Details

On December 11th, the Storybook team received a responsible disclosure alerting them to a potential vulnerability in certain built and published Storybooks.

The vulnerability is a bug in how Storybook handles environment variables defined in a .env file, which could, in specific circumstances, lead to those variables being unexpectedly bundled into the artifacts created by the storybook build command. When a built Storybook is published to the web, the bundle’s source is viewable, thus potentially exposing those variables to anyone with access. If those variables contained secrets, they should be considered compromised.

Who is impacted?

For a project to be vulnerable to this issue, it must:

  • Build the Storybook (i.e. run storybook build directly or indirectly) in a directory that contains a .env file (including variants like .env.local)
  • The .env file contains sensitive secrets
  • Use Storybook version 7.0.0 or above
  • Publish the built Storybook to the web

Storybooks built without a .env file at build time are not affected, including common CI-based builds where secrets are provided via platform environment variables rather than .env files.

Users' Storybook runtime environments (i.e. storybook dev) are not affected. Deployed applications that share a repo with a project's Storybook are not affected.

Storybook 6 and below are not affected.

Recommended actions

First, Storybook recommends that everyone audit for any sensitive secrets provided via .env files and rotate those keys.

Second, Storybook has released patched versions of all affected major Storybook versions that no longer have this vulnerability. Projects should upgrade their Storybook—on both local machines and CI environments—to one of these versions before publishing again.

  • 10.1.10+
  • 9.1.17+
  • 8.6.15+
  • 7.6.21+

Finally, some projects may have been relying on the undocumented behavior at the heart of this issue and will need to change how they reference environment variables after this update. If a project can no longer read necessary environmental variable values, it can either prefix the variables with STORYBOOK_ or use the env property in Storybook’s configuration to manually specify values. In either case, do not include sensitive secrets as they will be included in the built bundle.

Further information

Details of the vulnerability can be found on the Storybook announcement.

Severity

  • CVSS Score: 7.3 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Storybook Dev Server is Vulnerable to WebSocket Hijacking

CVE-2026-27148 / GHSA-mjf5-7g4m-gx5w

More information

Details

Summary

The WebSocket functionality in Storybook's dev server, used to create and update stories, is vulnerable to WebSocket hijacking. This vulnerability only affects the Storybook dev server; production builds are not impacted.

Details

Exploitation requires a developer to visit a malicious website while their local Storybook dev server is running. Because the WebSocket connection does not validate the origin of incoming connections, a malicious site can silently send WebSocket messages to the local instance without any further user interaction.

If a Storybook dev server is intentionally exposed publicly (e.g. for design reviews or stakeholder demos) the risk is higher, as no malicious site visit is required. Any unauthenticated attacker can send WebSocket messages to it directly.

The vulnerability affects the WebSocket message handlers for creating and saving stories, which can be exploited via unauthorized WebSocket connections to achieve persistent XSS or Remote Code Execution (RCE).

Note: recent versions of Chrome have some protections against this, but Firefox does not.

Impact

This vulnerability can lead to supply chain compromise. Key risks include:

  • Remote Code Execution: The vulnerability can allow attackers to execute malicious code, with the extent of impact depending on the configuration. Server-side RCE is possible in non-default configurations, such as when stories are executed via portable stories in JSDOM, potentially allowing attackers to exfiltrate credentials and environment variables, access source code and the filesystem, establish backdoors, or pivot to internal network resources.
  • Persistent XSS: Malicious payloads are written directly into story source files. If the malicious payload is committed to version control, it becomes part of the codebase and can propagate to deployed Storybook documentation sites, affecting developers and stakeholders who view them.
  • Supply Chain Propagation: If the modified source files are committed, injected code can spread to other team members via git, execute in CI/CD pipelines, and affect shared component libraries used across multiple projects.
Affected versions

8.1 and above. While the exploitable functionality was introduced in 8.1, the patch has been applied to 7.x as a precautionary measure given the underlying WebSocket behaviour.

Recommended actions

Update to one of the patched versions: 7.6.23, 8.6.17, 9.1.19, 10.2.10.

Severity

  • CVSS Score: 8.9 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

storybookjs/storybook (storybook)

v8.6.17

Compare Source

8.6.17

  • Harden websocket connection

v8.6.16

Compare Source

8.6.16

  • No-op release. No changes.

v8.6.15

Compare Source

8.6.15

v8.6.14

Compare Source

v8.6.13

Compare Source

v8.6.12

Compare Source

v8.6.11

Compare Source

v8.6.10

Compare Source

v8.6.9

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Dec 18, 2025
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch from 80be3c2 to d85ec57 Compare January 8, 2026 19:34
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch from d85ec57 to b413009 Compare January 19, 2026 19:12
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch 2 times, most recently from da25d7d to c625e54 Compare February 17, 2026 20:56
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch from c625e54 to cb0c587 Compare February 26, 2026 20:47
@renovate renovate Bot changed the title chore(deps): update dependency storybook to v8.6.15 [security] chore(deps): update dependency storybook to v8.6.17 [security] Feb 26, 2026
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch from cb0c587 to 9182177 Compare March 13, 2026 17:19
@renovate renovate Bot changed the title chore(deps): update dependency storybook to v8.6.17 [security] chore(deps): update dependency storybook to v8.6.17 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate
renovate Bot deleted the renovate/npm-storybook-vulnerability branch March 27, 2026 01:34
@renovate renovate Bot changed the title chore(deps): update dependency storybook to v8.6.17 [security] - autoclosed chore(deps): update dependency storybook to v8.6.17 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch 2 times, most recently from 9182177 to 23289ca Compare March 30, 2026 18:08
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch from 23289ca to 48da84f Compare April 29, 2026 13:58
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch 2 times, most recently from c71e578 to d455eac Compare May 18, 2026 18:54
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch 2 times, most recently from 8f64363 to 9ebeeef Compare June 1, 2026 21:04
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch from 9ebeeef to 78913d4 Compare June 11, 2026 14:13
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch 2 times, most recently from 7e0becd to 6d97d67 Compare July 16, 2026 19:08
@renovate
renovate Bot force-pushed the renovate/npm-storybook-vulnerability branch from 6d97d67 to 5997acd Compare July 30, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants