CVE-2025-59427 Cloudflare vite plugin exposes secrets over the built-in dev server
LowCVSS 2.9
EPSS 0.40%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cloudflare @cloudflare/vite-plugin(npm) | < 1.6.0 | 1.6.0 | Fixed |
| cloudflare workers-sdk | = < 1.6.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cloudflare @cloudflare/vite-plugin(npm) | < 1.6.0 | 1.6.0 |
| cloudflare workers-sdk | = < 1.6.0 | No fix listed |
References
- https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jx vendor-advisory
- https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- https://hackerone.com/reports/3117837
- https://github.com/cloudflare/workers-sdk/discussions/3455#discussioncomment-6165773
- github.com
- github.com product