Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
Medium
VulnerabilityCVE-2026-39365cvecve-2026-39365cwe-22
Published: Tue Apr 07 2026 (04/07/2026, 19:13:50 UTC)
Source: CVE Database V5
Vendor/Project: vitejs
Product: vite

Description

Vite is a frontend tooling framework for JavaScript. From 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON. This vulnerability is fixed in 6.4.2, 7.3.2, and 8.0.5.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/16/2026, 11:18:06 UTC

Technical Analysis

CVE-2026-39365 is a path traversal vulnerability (CWE-22) in the vitejs vite frontend tooling framework affecting versions 6.0.0 to before 6.4.2, 7.0.0 to before 7.3.2, and 8.0.0 to before 8.0.5. The issue arises because the dev server resolves file paths and reads .map files for optimized dependencies without properly restricting '../' segments in the URL, allowing attackers to bypass the configured server.fs.strict allow list. This enables unauthorized access to .map files located outside the intended project root directory, provided these files can be parsed as valid source map JSON. The vulnerability is addressed in vite versions 6.4.2, 7.3.2, and 8.0.5.

Potential Impact

An attacker can exploit this vulnerability to read .map files outside the project root directory by bypassing the server.fs.strict allow list. This could lead to unauthorized disclosure of source map files, which may contain sensitive information about the source code structure. The CVSS 4.0 base score is 6.3, indicating a medium severity impact with network attack vector, low complexity, no privileges required, no user interaction, and low impact on confidentiality.

Mitigation Recommendations

This vulnerability is fixed in vite versions 6.4.2, 7.3.2, and 8.0.5. Users should upgrade to one of these versions or later to remediate the issue. Patch status is confirmed by the version fixes listed in the vulnerability description. No additional vendor advisory was provided. No mitigation other than upgrading is indicated.

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-04-06T21:29:17.349Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69d55f07aaed68159a562947

Added to database: 4/7/2026, 7:46:15 PM

Last enriched: 4/16/2026, 11:18:06 AM

Last updated: 5/23/2026, 3:47:44 AM

Views: 111

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