CVE-2025-31125Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
- 5.3MediumCVSS base score
- 74.9%Exploitation in 30 daysEPSS · top 0.5% of all CVEs
- YesKnown exploitedin CISA's KEV since 22 Jan 2026
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. 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 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Vite Vitejs Improper Access Control Vulnerability.
- Added
- 22 Jan 2026
- Fix due (US federal)
- 12 Feb 2026
- Used by ransomware
- Not known
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 22 Jan 2026.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits2
Nuclei templates1 template
- Vite Development Server - Path Traversal (Nuclei template) (opens in a new tab)
http/cves/2025/CVE-2025-31125.yamlSeverity medium
References tagged exploit1 reference
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 (opens in a new tab)x_refsource_CONFIRMexploit
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 5 days later
· 5 days later
Published
- 10 months later
· 10 months later
Added to CISA KEV
Known exploited in the wild
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVDNVD · Analyzed | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 74.9% · top 0.5% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References3
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 (opens in a new tab)x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-8866 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4r4m-qw57-chr8 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-31125)Record last updated .