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

> CVE-2025-59427: Cloudflare vite plugin exposes secrets over the built-in dev server. CVSS 2.9 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2025-59427
Last updated: 2026-06-17T09:46:08Z

- Published: 2025-09-19 15:30 UTC · Updated: 2026-06-17 09:46 UTC · Assigner: GitHub\_M
- CVSS: 2.9 (CVSS 4.0) · Severity: Low
- EPSS: 0.38%, 32th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-200

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

## Affected vendors and products

- cloudflare: workers-sdk

## Tracked companies

- [Cloudflare](https://rewindex.com/company/cloudflare.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-59427)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-59427)
- [https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38](https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38)
- [https://github.com/cloudflare/workers-sdk/discussions/3455\#discussioncomment-6165773](https://github.com/cloudflare/workers-sdk/discussions/3455#discussioncomment-6165773)
- [https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jx](https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jx)
- [https://hackerone.com/reports/3117837](https://hackerone.com/reports/3117837)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-59427 · Markdown: https://rewindex.com/cve/CVE-2025-59427.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-59427 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:41.533Z
