CVE-2025-59427
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.
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
Affected products
cloudflare · workers-sdkWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →References
https://github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38https://github.com/cloudflare/workers-sdk/discussions/3455#discussioncomment-6165773https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jxhttps://hackerone.com/reports/3117837