Skip to content

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Feb 21, 2024


🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ @​storybook/addon-essentials (7.0.23 β†’ 7.6.17) Β· Repo Β· Changelog

Release Notes

Too many releases to show here. View the full release notes.

✳️ @​storybook/addon-links (7.1.1 β†’ 7.6.17) Β· Repo Β· Changelog

Release Notes

Too many releases to show here. View the full release notes.

✳️ @​storybook/react (7.4.5 β†’ 7.6.17) Β· Repo Β· Changelog

Release Notes

Too many releases to show here. View the full release notes.

✳️ @​storybook/react-webpack5 (7.4.5 β†’ 7.6.17) Β· Repo Β· Changelog

Release Notes

Too many releases to show here. View the full release notes.

⁉️ storybook (downgrade, 7.6.21 β†’ 7.6.17) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 Storybook manager bundle may expose environment variables during build

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.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Feb 21, 2024
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 4 times, most recently from a3e1572 to b5ff93c Compare March 1, 2024 17:45
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 3 times, most recently from 1fac6d9 to 9af14fd Compare March 13, 2024 07:46
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 3 times, most recently from 840dc95 to b05aaef Compare March 21, 2024 18:30
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 3 times, most recently from e589972 to d3117d6 Compare March 28, 2024 22:00
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 3 times, most recently from d21c861 to 34ed786 Compare April 10, 2024 16:00
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 3 times, most recently from d4f58e7 to 0527c67 Compare April 17, 2024 08:00
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 3 times, most recently from ea002d3 to 61b8ef3 Compare May 1, 2024 07:55
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from 6a32bbb to 238c20c Compare May 12, 2024 12:05
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from ba730fc to 1b01843 Compare May 26, 2024 04:55
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from 9c6de5a to 966bc9d Compare July 12, 2024 21:30
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 3 times, most recently from c3ecbd4 to 1eedb03 Compare October 26, 2024 17:00
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from 1eedb03 to a86463e Compare December 5, 2024 19:40
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from a86463e to d8e7c23 Compare January 28, 2025 01:30
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from 95f090f to 1e9d126 Compare February 15, 2025 14:05
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from 1e9d126 to eccfd0f Compare March 19, 2025 16:31
@github-actions
Copy link

github-actions bot commented Mar 19, 2025

size-limit report πŸ“¦

Path Size
dist/react-persisted-global-state.cjs.production.min.js 325 B (0%)
dist/react-persisted-global-state.esm.js 258 B (0%)

@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from a335bcf to c6d2450 Compare May 5, 2025 08:26
@Addono
Copy link
Owner

Addono commented May 5, 2025

@dependabot rebase

@Addono
Copy link
Owner

Addono commented May 5, 2025

@depfu rebase

@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from 82ad93f to 22e1962 Compare May 6, 2025 03:36
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from 22e1962 to 9a71221 Compare May 14, 2025 11:16
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from 65a3a7e to f11b70c Compare May 31, 2025 17:02
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from f11b70c to 2c3551f Compare June 18, 2025 11:01
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from b06fdbb to 58f8167 Compare July 3, 2025 11:25
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from 58f8167 to b1dabdf Compare August 15, 2025 15:55
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from b1dabdf to 4fd615c Compare September 6, 2025 17:00
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from 4fd615c to e7612ab Compare September 16, 2025 07:41
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch 2 times, most recently from 97548ec to aaaea67 Compare October 1, 2025 22:50
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from aaaea67 to e29d889 Compare October 24, 2025 17:35
@depfu depfu bot force-pushed the depfu/update/yarn/group/storybook-7.6.17 branch from e29d889 to 3499b9b Compare December 18, 2025 20:10
@depfu depfu bot changed the title Update all of storybook 7.4.5 β†’ 7.6.17 (minor) 🚨 [security] Update all of storybook 7.4.5 β†’ 7.6.17 (minor) Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants