CVE-2026-118662

Vite: `server.fs.deny` bypassed with queries

Published Oct 28, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.

Analysis

AI-generated

Technical impact

Vite’s development server inadvertently evaluates the server.fs.deny rule before stripping loader query parameters such as ?raw or ?import&raw. This logic flaw, classified as CWE‑180, CWE‑284 and CWE‑551, allows an unauthenticated attacker to bypass the deny checks by appending one of these queries to a file path that is both in server.fs.allow and matched by server.fs.deny, thereby retrieving the file’s contents. The result is unauthorized disclosure of sensitive data that should have been protected by the deny configuration, potentially exposing confidential project files or private assets.

Affected Systems

The vulnerability affects Vite version 6.4.4. Any instance of the Vite development server running this release and exposed to an external network is subject to this flaw. The issue is fixed in Vite 6.4.5 and later releases, so upgrading beyond 6.4.5 removes the problem.

Risk and Exploitability

With a CVSS score of 6.9 the vulnerability is assessed as medium severity. The EPSS score of approximately 0.3% indicates a low exploitation probability, and the issue is not listed in the CISA KEV catalog. Nonetheless, the flaw can be abused by any unauthenticated remote user who can reach the development server. The attacker just needs to supply a file path that is in both allow and deny lists and append a loader query. Successful exploitation results in read access to files that should have remained private.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Vite to version 6.4.5 or newer to eliminate the vulnerability.
  • Restrict network exposure of the development server, running it only on a local network or behind a firewall.
  • Reconfigure the file system rules to avoid overlap between server.fs.allow and server.fs.deny, ensuring sensitive files are not simultaneously permitted and denied.

Generated by OpenCVE AI on November 5, 2026 at 15:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8g5g-mxqh-grgj Vite: `server.fs.deny` bypassed with queries
History
Type Values Removed Values Added
Weaknesses CWE-551
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
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Vitejs
Vitejs vite
Vendors & Products Vitejs
Vitejs vite
Type Values Removed Values Added
Description Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.
Title Vite: `server.fs.deny` bypassed with queries
Weaknesses CWE-180
CWE-284
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-180

    Incorrect Behavior Order: Validate Before Canonicalize

  • CWE-284

    Improper Access Control

  • CWE-551

    Incorrect Behavior Order: Authorization Before Parsing and Canonicalization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 11:57 PM
Reserved
Oct 28, 2026, 5:25 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 9:16 PM
Modified
Nov 3, 2026, 12:17 AM
Severity
Important
Public date
Oct 28, 2026, 8:33 PM