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/07/2026, 20:03:14 UTC

Technical Analysis

The vitejs vite dev server improperly restricts pathname resolution for .map requests related to optimized dependencies in versions 6.0.0 through before 6.4.2, 7.3.2, and 8.0.5. Specifically, it resolves file paths and reads files without properly limiting '../' segments in URLs, allowing path traversal outside the intended directory. This bypasses the server.fs.strict allow list and permits retrieval of .map files located outside the project root, provided the files can be parsed as valid source map JSON. The vulnerability is tracked as CVE-2026-39365 and is categorized under CWE-22. Official fixes were released 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 on the development server. This could lead to unauthorized disclosure of source map files, which may contain sensitive information about the source code structure. The CVSS 4.0 score of 6.3 indicates 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. Since this is not a cloud service, remediation depends on applying the official patches. Patch status is confirmed by the vendor advisory indicating fixed versions. No additional mitigations are specified.

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/7/2026, 8:03:14 PM

Last updated: 4/8/2026, 12:42:01 AM

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