Source-map disclosure via traversal in optimized dependencies
Published Apr 7, 2026 · Updated Apr 7, 2026
Path traversal in the Vite+ dev server before 0.1.16 allows remote attackers to read source-map files outside the project root. The optimized-dependency .map handler resolves URL paths and passes them to readFile without rejecting ../ segments, bypassing server.fs.strict when the target parses as source-map JSON. Exploitation requires a dev server exposed with --host or server.host plus a predictable sensitive .map path; the reported consequence is unauthorized file disclosure only.
Summary
What happened
Path traversal in the Vite+ dev server before 0.1.16 allows remote attackers to read source-map files outside the project root. The optimized-dependency .map handler resolves URL paths and passes them to readFile without rejecting ../ segments, bypassing server.fs.strict when the target parses as source-map JSON. Exploitation requires a dev server exposed with --host or server.host plus a predictable sensitive .map path; the reported consequence is unauthorized file disclosure only.
The record
- CVE
- CVE-2026-39365
- Published
- Apr 7, 2026
- Updated
- Apr 7, 2026
- Vendor
- VoidZero
- Product
- Vite+
- Classifications
- CWE-200, CWE-22, T1005
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 7, 2026CVE publishedPublication date reported by the CVE source.
- Apr 7, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 0.1.16
- Affected versionversion=>= 6.0.0, < 6.4.2
- Affected versionversion=>= 7.0.0, < 7.3.2
- Affected versionversion=>= 8.0.0, < 8.0.5
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Vendor source-map traversal proof of conceptproof of concept · demonstrated
- ProjectDiscovery Nuclei templatefunctional · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo