# CVE-2025-59427: Cloudflare vite plugin exposes secrets over the built-in dev server

- Priority: **Routine**
- Reason: Not severe (CVSS 2.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-19 · Modified: 2025-09-19
- Aliases: GHSA-4pfg-2mw5-f8jx
- Record: https://cvemate.com/vulnerability/CVE-2025-59427 · JSON: https://cvemate.com/vulnerability/CVE-2025-59427/json

## Description

```text
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.
```

## Signals

- CVSS: 2.9 low (v4.0, CVE.org) 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
- EPSS: 0.399%, percentile 36.292%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- cloudflare workers-sdk: \< 1.6.0
- @cloudflare vite-plugin (Npm): \< 1.6.0

## References

- <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>
- <https://github.com/cloudflare/workers-sdk>

---

Data as of 2026-12-05T11:37:36.182Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
