CVE-2025-59427
CVE-2025-59427 · Cloudflare vite plugin exposes secrets over the built-in dev server
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 2.9 · Low · EPSS 0.4% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
workers-sdk
- Versions
- < 1.6.0: Affected
No fix published
@cloudflare/vite-plugin npm
- Affected ranges
- SEMVER: < 1.6.0
Update to 1.6.0
Original sources
- https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jx
- https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38
- https://hackerone.com/reports/3117837
- https://github.com/cloudflare/workers-sdk/discussions/3455#discussioncomment-6165773
- https://nvd.nist.gov/vuln/detail/CVE-2025-59427