Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.8
CVE-2025-59427: Cloudflare Vite plugin reveals secret files on local dev server
CVE-2025-59427 · published 1 year ago
Summary
When the Cloudflare Vite plugin is used with its default settings, the local development server makes every file in the project folder publicly accessible, including hidden files that often contain passwords or API keys such as .env and .dev.vars. This could allow anyone with access to the dev server to see sensitive information. Upgrade the plugin to version 1.6.0 or change the configuration to restrict which files are served.
What to do
- Update cloudflare vite-plugin to version 1.6.0.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | cloudflare | vite-plugin |
< 1.6.0 Fix: upgrade to 1.6.0
|
Original advisory text
Cloudflare 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.
References
- https://github.com/advisories/GHSA-4pfg-2mw5-f8jx
- https://github.com/cloudflare/workers-sdk/discussions/3455#discussioncomment-616... URL
- https://hackerone.com/reports/3117837 URL
- https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8j... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-59427 Vendor Advisory
- https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4b... Patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59427... Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Severity
7.8
High
Type
CWE-200Information Exposure
Timeline
Published19 Sep 2025
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta