Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @cloudflare/vite-plugin
  4. ›
  5. CVE-2025-59427

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

July 8, 2025 (updated September 22, 2025)

Note: originally posted on H1 but closed. Cross-posting over to here in abundance of caution instead of a public issue.

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
  • .dev.vars

References

  • github.com/advisories/GHSA-4pfg-2mw5-f8jx
  • github.com/cloudflare/workers-sdk
  • github.com/cloudflare/workers-sdk/commit/0e500720bf70016fa4ea21fc8959c4bd764ebc38
  • github.com/cloudflare/workers-sdk/discussions/3455
  • github.com/cloudflare/workers-sdk/security/advisories/GHSA-4pfg-2mw5-f8jx
  • hackerone.com/reports/3117837
  • nvd.nist.gov/vuln/detail/CVE-2025-59427

Code Behaviors & Features

Detect and mitigate CVE-2025-59427 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.0

Fixed versions

  • 1.6.0

Solution

Upgrade to version 1.6.0 or above.

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

npm/@cloudflare/vite-plugin/CVE-2025-59427.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 26 Sep 2025 00:20:14 +0000.