Description
Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.
Published: 2026-10-20
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized File Disclosure
Action: Patch
AI Analysis

Impact

Vite's import analysis can record a root‑relative browser URL in safeModulePaths instead of the expected resolved module identifier. When this occurs on a network‑accessible development server that is not running on Windows, an imported project file whose URL matches an absolute host path can authorize a later raw‑filesystem request for that host file. This allows a disclosure of a file located outside the project root, though it does not permit arbitrary path traversal because the host path must correspond to a project‑relative URL in the application graph. The primary consequence is the confidential disclosure of host files that match project URLs, exposing sensitive data without granting broader filesystem access.

Affected Systems

The vulnerability affects Vite and Vite‑Plus from vitejs, for all releases prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3. Upgrading to these or later versions removes the flaw.

Risk and Exploitability

The CVSS score of 6.3 indicates a medium severity. EPSS data is not available, and the vulnerability is not listed in CISA's KEV catalog. The attack vector is a network‑accessible, non‑Windows development server; the attacker must host a project file whose URL resolves to an absolute host path and rely on server.fs.deny not blocking raw‑filesystem requests. The exploitation does not enable full path traversal, so the risk is confined to accidental disclosure of matched files. The impact aligns with seen user‑controlled disclosure rather than arbitrary code execution.

Generated by OpenCVE AI on October 22, 2026 at 19:58 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vite and Vite‑Plus to version 6.4.4 or later
  • Ensure server.fs.deny is enabled or properly configured to block raw‑filesystem requests
  • If upgrading is not yet possible, restrict network access to the development server or disable raw‑filesystem serving

Generated by OpenCVE AI on October 22, 2026 at 19:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-rq7h-c2jc-7f22 Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine
History

Wed, 21 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-552
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low


Tue, 20 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Vitejs
Vitejs vite
Vitejs vite-plus
Vendors & Products Vitejs
Vitejs vite
Vitejs vite-plus

Tue, 20 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 20 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.
Title Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine
Weaknesses CWE-22
CWE-284
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T16:46:18.810Z

Reserved: 2026-10-19T21:30:47.245Z

Link: CVE-2026-112946

cve-icon Vulnrichment

Updated: 2026-10-20T16:45:51.612Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-20T16:17:05.210

Modified: 2026-10-20T19:56:45.543

Link: CVE-2026-112946

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-20T15:03:55Z

Links: CVE-2026-112946 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T20:00:12Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-284

    Improper Access Control

  • CWE-552

    Files or Directories Accessible to External Parties