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

- Severity: Low 2.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2025-07-08T19:07:47.000Z
- Modified: 2026-06-17T09:46:08.917Z
- Also known as: GHSA-4pfg-2mw5-f8jx
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cloudflare workers-sdk: < 1.6.0
- @cloudflare/vite-plugin (npm): before 1.6.0

## Every score

- GitHub_M: CVSS:4.0 2.9 Low `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jx> (web)
- <https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38> (web)
- <https://hackerone.com/reports/3117837> (web)
- <https://github.com/cloudflare/workers-sdk/discussions/3455#discussioncomment-6165773> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59427> (advisory)
- <https://github.com/cloudflare/workers-sdk> (package)

## Sources

- CVE List: [CVE-2025-59427](https://www.cve.org/CVERecord?id=CVE-2025-59427), CVE Terms of Use, modified 2025-09-19
- GitHub Advisory Database: [GHSA-4pfg-2mw5-f8jx](https://github.com/advisories/GHSA-4pfg-2mw5-f8jx), CC-BY-4.0, modified 2025-09-22
- NVD: [CVE-2025-59427](https://nvd.nist.gov/vuln/detail/CVE-2025-59427), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59427 · Whole record: https://cve.day/CVE-2025-59427.json · Rebuilt by cve.day 2026-11-25T22:59:04.878Z
