Skip to content

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

LowCVSS 2.9 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
cloudflare @cloudflare/vite-plugin(npm) < 1.6.0 1.6.0 Fixed
cloudflare workers-sdk = < 1.6.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cloudflare @cloudflare/vite-plugin(npm) < 1.6.0 1.6.0
cloudflare workers-sdk = < 1.6.0 No fix listed

References