Skip to content
OpenAdvisories
Low · 2.9 CVE-2025-59427 EUVD-2025-29441GHSA-4pfg-2mw5-f8jx

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

Published Sep 19, 2025 · Updated Sep 19, 2025 · 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.

Affected products

VendorProductAffectedFixed
cloudflare workers-sdk < 1.6.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @cloudflare/vite-plugin < 1.6.0 1.6.0 GHSA-4pfg-2mw5-f8jx

References