Skip to main content

CVE-2026-112946: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in vitejs vite

0
Medium
VulnerabilityCVE-2026-112946cvecve-2026-112946cwe-22cwe-284
Published: 10/20/2026 (10/20/2026, 15:03:55 UTC)
Source: CVE Database V5
Vendor/Project: vitejs
Product: vite

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.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

vitejs

vite

Affected versions
>=8.3.0 <8.3.3>=8.2.0 <8.2.4>=8.0.0 <8.1.6>=7.0.0 <7.3.7<6.4.4

vitejs

vite-plus

Affected versions
<1.1.0
vite
pkg:npm/vite
Affected versions
<6.4.4<1.1.0>=7.0.0 <7.3.7>=8.0.0 <8.1.6>=8.2.0 <8.2.4>=8.3.0 <8.3.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/20/2026, 15:49:14 UTC

Technical Analysis

CVE-2026-112946 is a path traversal vulnerability in vitejs vite affecting versions prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3. The vulnerability arises because 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, this can allow an imported project file whose URL matches an absolute host path to authorize a subsequent raw filesystem request for that host file outside the project root, provided server.fs.deny does not block it. The vulnerability does not allow arbitrary path traversal since the host path must correspond to a project-relative URL authorized by the application graph. The issue is resolved in the fixed versions.

Potential Impact

An attacker on a network-accessible, non-Windows development server could exploit this vulnerability to access files outside the project root that correspond to authorized project-relative URLs. This may lead to unauthorized disclosure of files on the server filesystem. However, arbitrary path traversal is not possible, limiting the scope of the impact.

Mitigation Recommendations

Upgrade vite to version 6.4.4, 7.3.7, 8.1.6, 8.2.4, or 8.3.3 or later where this issue is fixed. Additionally, ensure that server.fs.deny is properly configured to block unauthorized filesystem access. No other specific mitigations are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-19T21:30:47.245Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad789f62cdf04f6563b8494

Added to database: 10/20/2026, 15:34:14 UTC

Last enriched: 10/20/2026, 15:49:14 UTC

Last updated: 10/20/2026, 19:06:08 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses