CVE-2026-39364

Vite has a `server.fs.deny` bypass with queries

State
Published
Severity
8.2 High
Published
Apr 7, 2026
Updated
Aug 17, 2026
Reserved
Apr 6, 2026

Read the record on cve.org

Description

Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.

Scores

CVSSScoreVectorSource
4.08.2 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NGitHub_M
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:Nredhat-SADP

Weaknesses

  • CWE-180 Incorrect Behavior Order: Validate Before Canonicalize
  • CWE-284 Improper Access Control
  • CWE-472 External Control of Assumed-Immutable Web Parameter

Affected Products

ProductVersions
vitevitejs
  • >= 8.0.0, < 8.0.5Affected
  • >= 7.1.0, < 7.3.2Affected
vite-plusvitejs
  • < 0.1.16Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.