CVE-2025-31125 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
HighCVSS 7.5
EPSS 74.9%
CISA KEV
added 2026-01-22 · due 2026-02-12
Exploited in the wild
Scanner template
PoC
- Published
- Updated
- Exploit status
- Exploited in the wild (confirmed)
- CISA SSVC
- Actively exploited · automatable: no · technical impact: total
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.
CISA Known Exploited Vulnerability
- Date added
- 2026-01-22
- Due date (FCEB)
- 2026-02-12
- Ransomware use
- Unknown
Required action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm vite(npm) | < 4.5.11; >= 5.0.0, < 5.4.16; >= 6.0.0, < 6.0.13; >= 6.1.0, < 6.1.3 +1 more | 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4 | Fixed |
| vitejs vite | < 4.5.11; = < 4.5.11; = >= 5.0.0, < 5.4.16; = >= 6.0.0, < 6.0.13 +6 more | 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm vite(npm) | >= 6.2.0, < 6.2.4 | 6.2.4 |
| npm vite(npm) | >= 6.1.0, < 6.1.3 | 6.1.3 |
| npm vite(npm) | >= 6.0.0, < 6.0.13 | 6.0.13 |
| npm vite(npm) | >= 5.0.0, < 5.4.16 | 5.4.16 |
| npm vite(npm) | < 4.5.11 | 4.5.11 |
| vitejs vite | = >= 6.2.0, < 6.2.4 | No fix listed |
| vitejs vite | = >= 6.1.0, < 6.1.3 | No fix listed |
| vitejs vite | = >= 6.0.0, < 6.0.13 | No fix listed |
| vitejs vite | = >= 5.0.0, < 5.4.16 | No fix listed |
| vitejs vite | = < 4.5.11 | No fix listed |
| vitejs vite | < 4.5.11 | 4.5.11 |
| vitejs vite | >= 5.0.0, < 5.4.16 | 5.4.16 |
| vitejs vite | >= 6.0.0, < 6.0.13 | 6.0.13 |
| vitejs vite | >= 6.1.0, < 6.1.3 | 6.1.3 |
| vitejs vite | >= 6.2.0, < 6.2.4 | 6.2.4 |
References
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 exploit vendor-advisory
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- www.cisa.gov government-resource us-government-resource
- github.com
- github.com product
- ENISA EUVD EUVD-2025-8866 third-party-advisory