CVE-2025-68429
Last modified
CVE-2025-68429 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. Storybook is a frontend workshop for building user interface components and pages in isolation. A vulnerability present starting in versions 7.0.0 and prior to versions 7.6.21, 8.6.15, 9.1.17, and 10.1.10 relates to Storybook’s handling of 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
Storybook is a frontend workshop for building user interface components and pages in isolation. A vulnerability present starting in versions 7.0.0 and prior to versions 7.6.21, 8.6.15, 9.1.17, and 10.1.10 relates to Storybook’s handling of 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. For a project to potentially 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`) and 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. Storybook runtime environments (i.e. `storybook dev`) are not affected. Deployed applications that share a repo with your Storybook are not affected. Users should upgrade their Storybook—on both their local machines and CI environment—to version .6.21, 8.6.15, 9.1.17, or 10.1.10 as soon as possible. Maintainers additionally recommend that users audit for any sensitive secrets provided via `.env` files and rotate those keys. 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, 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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Storybook | Storybook | >= 7.0.0, < 7.6.21 |
| Storybook | Storybook | >= 8.0.0, < 8.6.15 |
| Storybook | Storybook | >= 9.0.0, < 9.1.17 |
| Storybook | Storybook | >= 10.0.0, < 10.1.10 |
References
- https://github.com/storybookjs/storybook/security/advisories/GHSA-8452-54wp-rmv6Mitigation, Vendor Advisory
- https://storybook.js.org/blog/security-advisoryMitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-68429?
How severe is CVE-2025-68429?
How do I fix CVE-2025-68429?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-6841A vulnerability has been found in code-projects Product Inve…7.2
- CVE-2025-6842A vulnerability was found in code-projects Product Inventory…7.2
- CVE-2025-68420Comarch ERP Optima client connects to a database using a hig…7.5
- CVE-2025-68421Comarch ERP Optima client makes use of a hard-coded password…8.7
- CVE-2025-68422Improper Authorization (CWE-285) in Kibana can lead to privi…4.3
- CVE-2025-68428jsPDF is a library to generate PDFs in JavaScript. Prior to …7.5
- CVE-2025-6843A vulnerability was found in code-projects Simple Photo Gall…9.8
- CVE-2025-68430CVAT is an open source interactive video and image annotatio…4.3
- CVE-2025-68431libheif is an HEIF and AVIF file format decoder and encoder.…7.1
- CVE-2025-68432Zed, a code editor, has an aribtrary code execution vulnerab…7.3
- CVE-2025-68433Zed, a code editor, has an aribtrary code execution vulnerab…7.3
- CVE-2025-68434Open Source Point of Sale (opensourcepos) is a web based poi…8.8
Are you affected by CVE-2025-68429?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
