CVE-2026-39364

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

Published Apr 7, 2026 CVSS 4.0 · 8.2 High EPSS 2.3% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Vite’s development server is vulnerable to a configuration bypass that allows unauthorized reading of files protected by the server.fs.deny setting. By appending query parameters such as ?raw, ?import&raw or ?import&url&inline to an HTTP request, a client receives an HTTP 200 response containing the contents of files that should otherwise be blocked, including environment files and certificate files. This vulnerability maps to multiple improper access control weaknesses, specifically CWE‑180 and CWE‑284, and represents an undocumented security risk (CWE‑472).

Affected Systems

The flaw affects the open-source Vite framework and its vite‑plus variant. It is present in all releases from 7.1.0 up to, but not including, 7.3.2 and from 8.0.0 up to, but not including, 8.0.5. Upgrading to version 7.3.2 or later, or 8.0.5 or later, removes the bypass.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity vulnerability. EPSS score is 2%, indicating a low probability of exploitation, and the flaw is not listed in CISA’s KEV catalog. Based on the description, the attack vector is inferred to be remote; an adversary must be able to send HTTP requests to a Vite dev server exposed over a network. Once the server is reachable, the exploit is straightforward and does not require additional privileges beyond the ability to construct URLs with the relevant query parameters. Successful exploitation results in the disclosure of sensitive configuration information and private keys, jeopardizing confidentiality of the development environment and potentially the production environment if the same files are used. The impact is limited to the host running the dev server, but the compromised data could be leveraged for further attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vite to version 7.3.2 or later, or to 8.0.5 or later; the patch removes the file‑deny bypass.
  • If an upgrade is not immediately possible, bind the Vite dev server to localhost or a secured internal network so external actors cannot reach it.
  • Ensure the development server is disabled in production environments, or replace it with a production‑ready static file server to prevent accidental exposure.

Generated by OpenCVE AI on June 18, 2026 at 09:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-v2wj-q39q-566r Vite: `server.fs.deny` bypassed with queries
History
Type Values Removed Values Added
First Time appeared Voidzero
Voidzero vite\+
CPEs cpe:2.3:a:vitejs:vite-plus:*:*:*:*:*:node.js:*:* cpe:2.3:a:voidzero:vite\+:*:*:*:*:*:node.js:*:*
Vendors & Products Voidzero
Voidzero vite\+
Type Values Removed Values Added
CPEs cpe:2.3:a:vitejs:vite-plus:*:*:*:*:*:node.js:*:*
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
First Time appeared Vitejs
Vitejs vite
Vitejs vite-plus
Vendors & Products Vitejs
Vitejs vite
Vitejs vite-plus
Type Values Removed Values Added
Weaknesses CWE-472
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

threat_severity

Important

Type Values Removed Values Added
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.
Title Vite has a `server.fs.deny` bypass with queries
Weaknesses CWE-180
CWE-284
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses
  • CWE-180

    Incorrect Behavior Order: Validate Before Canonicalize

  • CWE-284

    Improper Access Control

  • CWE-472

    External Control of Assumed-Immutable Web Parameter

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 17, 2026, 12:05 PM
Reserved
Apr 6, 2026, 9:29 PM
Status
Modified
Published
Apr 7, 2026, 8:16 PM
Modified
Aug 4, 2026, 1:18 PM
Severity
Important
Public date
Apr 7, 2026, 7:12 PM