CVE-2025-31486: vitejs vite
Vulnerability summary
CVE-2025-31486 is a medium (CVSS 5.3) vulnerability in vitejs vite. EPSS estimates a 40.46% chance of exploitation in the next 30 days, higher than 98.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 03-04-2025PublishedVulnerability first disclosed.
- 03-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS trend
Probability
40.46%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
0.00 pp
From 40.46% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-284Improper Access ControlThe product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
Affected systems
Chainguard2 products
- langfuse-2-worker< 2.95.12-r26
- langfuse-fips-2-worker< 2.95.12-r28
Npm1 product
- vite≥ 6.2.0, < 6.2.5 | ≥ 6.1.0, < 6.1.4 | ≥ 6.0.0, < 6.0.14 | ≥ 5.0.0, < 5.4.17 | < 4.5.12
Vitejs1 product
- vite< 4.5.12 | ≥ 5.0.0, < 5.4.17 | ≥ 6.0.0, < 6.0.14 | ≥ 6.1.0, < 6.1.4 | ≥ 6.2.0, < 6.2.5
3 vendors · 4 products
References
6 links- github.com/vitejs/vitePACKAGE