Loading advisory.
Loading advisory.
Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling
Any files ending with .map even out side the project can be returned to the browser.
Published 2026-04-06 18:03 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| vite | npm | >= 8.0.0, < 8.0.5 >= 7.0.0, < 7.3.2 < 6.4.2 | 8.0.5, 7.3.2, 6.4.2 | npm install vite@8.0.5npm install vite@7.3.2npm install vite@6.4.2 |
Any files ending with .map even out side the project can be returned to the browser.
Only apps that match the following conditions are affected:
explicitly exposes the Vite dev server to the network (using --host or server.host config option)
have a sensitive content in files ending with .map and the path is predictable
In Vite v7.3.1, 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.
Create a minimal PoC sourcemap outside the project root
cat > /tmp/poc.map <<'EOF'
{"version":3,"file":"x.js","sources":[],"names":[],"mappings":""}
EOFStart the Vite dev server (example)
pnpm -C playground/fs-serve dev --host 127.0.0.1 --port 18080Confirm that direct /@fs access is blocked by strict (returns 403)
<img width="4004" height="1038" alt="image" src="https://github.com/user-attachments/assets/15a859a8-1dc6-4105-8d58-80527c0dd9ab" />
Inject ../ segments under the optimized deps .map URL prefix to reach /tmp/poc.map
<img width="2790" height="846" alt="image" src="https://github.com/user-attachments/assets/5d02957d-2e6a-4c45-9819-3f024e0e81f2" />
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.009 on 2026-11-24 to 0.010 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.009 | first score | v2026.06.15 |
| 2026-11-26 | 0.010 | 0.009 | v2026.06.15 |