Skip to main content

Vite CVE-2026-112946

| EUVDEUVD-2026-105128 MEDIUM
Path Traversal (CWE-22)
2026-10-20 GitHub_M GHSA-rq7h-c2jc-7f22
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach network-exposed Vite dev server
  2. Delivery
    Identify host path matching a safe module URL
  3. Exploit
    Send crafted @fs raw-filesystem request
  4. Execution
    Server authorizes request via tainted safeModulePaths
  5. Impact
    Disclose project-external host file contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a Vite development server (not a production build) that is (1) network-accessible rather than bound to the default localhost, (2) running on a non-Windows host, and (3) configured such that server.fs.deny does not block the target file. Additionally, an imported project file must have a root-relative browser URL that collides with an absolute host filesystem path, causing that path to be recorded in safeModulePaths; only files matching such application-graph-authorized URLs can be disclosed. Limiting factors: Windows hosts are unaffected; arbitrary path traversal is NOT possible (the host path must correspond to a project-relative URL); default localhost binding prevents remote reach; and the impact is confined to read disclosure of a single matching file outside the project root, with no integrity or availability effect.

Impact

This is a limited information-disclosure flaw in Vite's dev server, not a high-priority emergency. The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N) scores 6.3 (Medium) and is internally consistent with the description: network reachable (AV:N), unauthenticated (PR:N), no user interaction, but with an attack requirement (AT:P) reflecting that a specific URL/host-path collision must exist, and only Low confidentiality impact with zero integrity or availability impact. No EPSS score, no CISA KEV listing, and no public exploit were supplied, so exploitation status is 'no public exploit identified at time of analysis.' The GitHub advisory and patch commits confirm the bug and fix, but the source evidence provided is the vendor's remediation (PR #23656 and regression tests), not a weaponized attacker tool. The realistic risk is materially constrained by three gating conditions stated in the description - the dev server must be network-accessible (Vite binds to localhost by default), the host must be non-Windows, and server.fs.deny must not already block the target - and by the fact that it does NOT permit arbitrary path traversal (the disclosed host path must correspond to a project-relative URL authorized by the application graph). Net: a genuine but low-to-medium development-environment exposure, worth patching promptly where dev servers are exposed on a network, but not comparable to a remotely exploitable production RCE despite the 'network' vector.

Exploit ScenarioDerived

A developer exposes a Vite dev server on a network interface (e.g. server.host set for LAN/container testing) on a non-Windows machine. An attacker who can reach that server issues a raw filesystem (@fs) request for a host path that collides with a root-relative module URL recorded in safeModulePaths, and if server.fs.deny does not block it, Vite returns the contents of that host file located outside the project root. No public exploit code was provided, and the attacker cannot traverse to arbitrary paths - only files matching an application-graph-authorized URL are disclosed.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 20, 2026

Vite development servers can be induced to serve a single file from outside the project root after import analysis records a root-relative browser URL, rather than the cleaned resolved module identifier, in the internal safeModulePaths trust list. Only non-Windows hosts running a network-accessible dev server (not a production build) are affected, and only when server.fs.deny does not already block the target file; because the colliding path must correspond to a project-relative URL authorized by the application graph, arbitrary path traversal is not achievable and impact is limited to read disclosure with no integrity or availability effect. Exploitation requires the coincidence of an imported project file whose URL matches an absolute host path plus attacker access to the exposed dev server, which the independent assessment scores as higher complexity (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N); no public exploit code was identified at time of analysis.

RemediationAI

Upgrade Vite to 6.4.4, 7.3.7, 8.1.6, 8.2.4, or 8.3.3 depending on the major line in use - these releases contain the fix that stores only the cleaned resolved module identifier in safeModulePaths (vendor advisory https://github.com/vitejs/vite/security/advisories/GHSA-rq7h-c2jc-7f22). If an immediate upgrade is not possible, the most effective compensating control is to stop exposing the dev server: leave server.host at its default localhost binding or front it with an authenticating reverse proxy / VPN, accepting that this breaks LAN device testing and container-to-host access workflows. Alternatively, add explicit server.fs.deny patterns (glob entries covering sensitive paths outside the project root) so the confused safe-module entry cannot be served, understanding that deny patterns are match-based and will not protect files an operator forgets to enumerate; combining a tightened server.fs.allow with deny rules reduces but does not eliminate the window. Moving development to a Windows host is not a practical mitigation despite Windows being unaffected, and note that server.fs.strict settings are not a substitute for the patched release. Because the dev server has no authentication, never bind it to 0.0.0.0 on untrusted networks.

Affected VersionsENISA

vite 7.0.0, < 7.3.7
vite 8.2.0, < 8.2.4
vite < 6.4.4
vite-plus < 1.1.0
vite 8.0.0, < 8.1.6
vite 8.3.0, < 8.3.3

Affected Packages

npm vite fix: 6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3
npm vite-plus fix: 1.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Vite's dev server exposes raw filesystem content through its /@fs/ endpoint, gated by server.fs.allow and server.fs.deny plus an internal safeModulePaths set that records modules legitimately authorized through the application's import graph. In the vulnerable importAnalysis plugin, the code added fsPathFromUrl(stripBase(url, base)) to safeModulePaths; on POSIX-style hosts a root-relative browser URL such as /safe-module-path-unresolved is converted into a host-absolute path (/safe-module-path-unresolved) and stored as if it were a verified module. A later /@fs/ request for that same host path is then treated as authorized and the file is served even though it lies outside the project root. The upstream fix (PR #23656, commits 170b927, 45c0e33, c3e06f9, e570d8d, f0d76c7) only records cleanUrl(resolvedId) when a resolution actually succeeded, so unresolved SSR/synthetic imports no longer contaminate the trust list; the accompanying regression test asserts safeModulePaths does not contain the unresolved import, and a playground test verifies the cross-origin-ish /@fs fetch now returns 403 (404 on Windows or bundled dev builds). The weakness class is CWE-22 (path traversal), but here it is a constrained trust-list confusion rather than a classic ../ escape: the disclosed host path must still map to a project-relative URL that the application graph authorized.

Know when Vite gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because exploitation needs a host-path/URL collision on a non-Windows networked dev server with fs.deny not blocking; only limited read disclosure (C:L, I:N, A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 3.7 LOW

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 20, 2026 - 17:18 EUVD
CVE Published
Oct 20, 2026 - 15:03 cve.org
MEDIUM 6.3

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 99 npm packages depend on vite (33 direct, 68 indirect)
  • 2 npm packages depend on vite-plus (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 8.3.0 and other introduced versions.

Threat Intelligence Overview

EPSS Score
0.9%
Top 42% exploitable
Prevalence
High
Vite is among the most widely used JavaScript frontend dev tools
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Vite

View all
CVE-2025-31125 MEDIUM POC
5.3 Mar 31

Vite is a frontend tooling framework for javascript. Rated medium severity (CVSS 5.3), this vulnerability is remotely ex

CVE-2025-30208 MEDIUM POC
5.3 Mar 24

Vite, a provider of frontend development tooling, has a vulnerability in versions prior to 6.2.3, 6.1.2, 6.0.12, 5.4.15,

CVE-2024-52011 HIGH POC
7.5 Jun 01

launch-editor allows users to open files with line numbers in editor from Node.js. Rated high severity (CVSS 7.5), this

CVE-2024-23331 HIGH POC
7.5 Jan 19

Vite is a frontend tooling framework for javascript. Rated high severity (CVSS 7.5), this vulnerability is remotely expl

CVE-2023-34092 HIGH POC
7.5 Jun 01

Vite provides frontend tooling. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentic

CVE-2025-46565 MEDIUM POC
6.0 May 01

Vite is a frontend tooling framework for javascript. Rated medium severity (CVSS 6.0), this vulnerability is remotely ex

CVE-2023-49293 MEDIUM POC
6.1 Dec 04

Vite is a website frontend framework. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no a

CVE-2025-67489 CRITICAL
9.8 Dec 09

Arbitrary remote code execution in @vitejs/plugin-rsc 0.5.5 and earlier lets unauthenticated network attackers run JavaS

CVE-2022-35204 MEDIUM POC
4.3 Aug 18

Vitejs Vite before v2.9.13 was discovered to allow attackers to perform a directory traversal via a crafted URL to the v

CVE-2026-112942 HIGH
7.5 Oct 20

Path-validation bypass in launch-editor before 2.14.2 on Windows allows unauthenticated remote attackers to pass a craft

CVE-2026-118662 MEDIUM
6.9 Oct 28

Information disclosure in the Vite development server 6.4.4 lets a network attacker retrieve files that server.fs.deny i

CVE-2025-58751 LOW POC
2.3 Sep 08

Vite is a frontend tooling framework for JavaScript. Rated low severity (CVSS 2.3), this vulnerability is remotely explo

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy