CVE-2025-31486vite Path Traversal
Vite allows server.fs.deny to be bypassed with .svg or relative paths
Published Apr 4, 2025 · Updated Nov 5, 2026 · Also known as CGA-fg68-7pxm-f4w3, CGA-vjgq-m8vq-pppj, CGA-vqhr-p693-5ffq, CGA-w4jq-6qpg-48x8, CLSA-2026-1791666893, CLSA-2026-1791795546, GHSA-xcj6-pq6g-qj4x, MINI-qw4g-pxqc-7pgp
Key Facts
Patch immediately- CVE-2025-31486 is a medium-severity vulnerability (CVSS 5.3 v3.1) affecting langfuse-2 (chainguard), langfuse-2-worker (chainguard), langfuse-fips-2 (chainguard) and 10 more products.
- It is exploited in the wild, listed in Industry KEV feed since Dec 1, 2026. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 40% probability of exploitation in the next 30 days.
- Fixed versions are available, including @seal-security/vite 4.4.11-sp999, @vitejs/plugin-legacy 5.4.14-tuxcare.1, @vitejs/plugin-react 2.9.18-tuxcare.1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
5.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS (30-day exploit likelihood)
40%
Higher than 98.6% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
49/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Dec 1, 2026
606 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
Description
Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass.
This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Dec 1, 2026 | n/a | Not reported |
Affected Products
18 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| langfuse-2chainguard | See advisory | 2.95.12-r26 |
| langfuse-2-workerchainguard | See advisory | 2.95.12-r26 |
| langfuse-fips-2chainguard | See advisory | 2.95.12-r28 |
| langfuse-fips-2-workerchainguard | See advisory | 2.95.12-r28 |
| vitess-18.0chainguard | See advisory | 18.0.8-r11 |
Patched Releases
@seal-security/vite
4.4.11-sp999
@vitejs/plugin-legacy
5.4.14-tuxcare.1
@vitejs/plugin-react
2.9.18-tuxcare.1, 3.2.11-tuxcare.1
langfuse-2
2.95.12-r26
langfuse-2-worker
2.95.12-r26
langfuse-fips-2
2.95.12-r28
langfuse-fips-2-worker
2.95.12-r28
trigger-dev
4.5.11-r1
vite
>=6.2.5, 2.9.18-tuxcare.1, 3.2.11-tuxcare.1, 4.1.5-tuxcare.1, 4.4.11-sp999, 4.5.12, 4.5.5-tuxcare.1, 5.0.12-tuxcare.4, 5.4.10-tuxcare.2, 5.4.14-tuxcare.1, 5.4.17, 6.0.14, 6.1.4, 6.2.5
vitejs/vite
>=6.2.5, 4.5.12, 5.4.17, 6.0.14, 6.1.4, 6.2.5
vitess-18.0
18.0.8-r11
vitess-19.0
19.0.10-r6
vitess-20.0
20.0.6-r7
Timeline
Publicly disclosed
Apr 4, 2025
Last updated
Nov 5, 2026
Added to Industry KEV feed
Dec 1, 2026
Weakness Type
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- CWE-284 Improper Access Control
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2025-31486
- advisoryGHSA advisory
- exploitVulnCheck exploitation report
- articlehttps://github.com/vitejs/vite/blob/037f801075ec35bb6e52145d659f71a23813c48f/packages/vite/src/node/plugins/asset.ts#L285-L290
FAQ
Common Questions.
Vite is a frontend tooling framework for javascript.
Affected: langfuse-2 (chainguard); langfuse-2-worker (chainguard); langfuse-fips-2 (chainguard), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Dec 1, 2026.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including @seal-security/vite 4.4.11-sp999, @vitejs/plugin-legacy 5.4.14-tuxcare.1, @vitejs/plugin-react 2.9.18-tuxcare.1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2025-31486 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo