Skip to main content

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

0
Medium
VulnerabilityCVE-2026-112947cvecve-2026-112947cwe-22cwe-200cwe-209
Published: 10/20/2026 (10/20/2026, 15:10:51 UTC)
Source: CVE Database V5
Vendor/Project: vitejs
Product: vite

Description

A path traversal vulnerability in Vite versions 8.2.0 through 8.2.3 and 8.3.0 through 8.3.2 allows an attacker to read the first 4 bytes of files outside the configured server.fs directory. This occurs when a request with the ?vite-wasm-instance query is processed, bypassing server.fs path restrictions. The vulnerability is fixed in versions 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

vitejs

vite-plus

Affected versions
>=0.2.8 <1.1.0
vitejs/vite
pkg:npm/vitejs/vite
Affected versions
>=8.3.0 <8.3.3>=8.2.0 <8.2.4>=0.2.8 <1.1.0

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:09 UTC

Technical Analysis

Vite, a JavaScript frontend tooling framework, has a path traversal vulnerability (CWE-22) in versions >=8.2.0 <8.2.4 and >=8.3.0 <8.3.3. When handling requests containing the ?vite-wasm-instance query, the internal Wasm plugin's load hook removes the query and reads the file path directly from disk without applying server.fs directory restrictions. If the file read fails to parse as WebAssembly, an error is thrown by Node or Deno that leaks the first 4 bytes of the file. This information disclosure vulnerability is resolved in versions 8.2.4 and 8.3.3.

Potential Impact

An attacker can obtain the first 4 bytes of arbitrary files outside the restricted server.fs directory by sending specially crafted requests. This partial information disclosure could aid in reconnaissance but does not directly lead to full file content exposure or code execution. The CVSS 4.0 score is 6.3 (medium severity), reflecting network attack vector, low complexity, and partial information disclosure.

Mitigation Recommendations

Upgrade Vite to version 8.2.4 or later in the 8.2.x series, or 8.3.3 or later in the 8.3.x series to apply the official fix. No other mitigation is required as the vulnerability is resolved in these versions.

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: 6ad789f62cdf04f6563b8495

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

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

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

Views: 8

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