8.2High

CVE-2026-39364Vite has a `server.fs.deny` bypass with queries

vitejs vite; vitejs vite-plus; Red Hat Red Hat Ansible Automation Platform 2.6; Red Hat Red Hat Advanced Cluster Security 4 Published: (7 months ago)

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.

Weakness (CWE): CWE-180CWE-284CWE-472

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

References and patches

CPE matches (NVD) (3)

  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* ≥ 7.0.0 ≤ 7.3.1
  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* ≥ 8.0.0 ≤ 8.0.4
  • cpe:2.3:a:voidzero:vite\+:*:*:*:*:*:node.js:*:* ≤ 0.1.15