CVE-2025-31486
CVSS v3
5.3
MEDIUM
EPSS Score
40.5 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for vite.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- vitenpmall versions · fixed in 4.5.12
Vendor advisories
vite: Vite allows server.fs.deny to be bypassed with .svg or relative paths
automation-controller.src as a component of Red Hat Ansible Automation Platform 2 · automation-eda-controller.src as a component of Red Hat Ansible Automation Platform 2 · automation-gateway.src as a component of Red Hat Ansible Automation Platform 2
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.
Technical details
- Published
- 2025-04-03
Frequently asked questions
What is CVE-2025-31486?
Is CVE-2025-31486 actively exploited?
What is the CVSS score for CVE-2025-31486?
Running vite? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.