CVE-2025-31486
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2025
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
Vite allows server.fs.deny to be bypassed with .svg or relative paths
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.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
vite
- Vendor
- vitejs
- Product
- vite
- Platforms
- Unknown
- Default status
Unknown
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| < 4.5.12 | affected | Unavailable | Unavailable | Unavailable | None listed |
| >=5.0.0, < 5.4.17 | affected | Unavailable | Unavailable | Unavailable | None listed |
| >=6.0.0, < 6.0.14 | affected | Unavailable | Unavailable | Unavailable | None listed |
| >=6.1.0, < 6.1.4 | affected | Unavailable | Unavailable | Unavailable | None listed |
| >=6.2.0, < 6.2.5 | affected | Unavailable | Unavailable | Unavailable | None listed |