CVE-2025-59427
LOW 2.9CVSS 4.0Cloudflare Vite plugin exposes secrets over the built-in dev server
The Cloudflare Vite plugin enables a full-featured integration between Vite and the Workers runtime. When utilising the Cloudflare Vite plugin in its default configuration, all files are exposed by the local dev server, including files in the root directory that contain secret information such as .env and .dev.vars. This vulnerability is fixed in 1.6.0.
- Published
- 19 Sep 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-200
- Also known as
- GHSA-4pfg-2mw5-f8jx
- Sources
- NVDJSONOSV GHSA-4pfg-2mw5-f8jxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.9 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @cloudflare/vite-plugin | < 1.6.0 | 1.6.0 |
References
- https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38 · WEB
- https://github.com/cloudflare/workers-sdk/discussions/3455#discussioncomment-6165773 · WEB
- https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jx · WEB
- https://hackerone.com/reports/3117837 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-59427 · ADVISORY
- https://github.com/cloudflare/workers-sdk · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 19 Sep 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 8 Jul 2025)