medium5.3Known exploited
CVE-2025-31125
Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
Exploited in the wild
This vulnerability is on the CISA Known Exploited Vulnerabilities list, added 2026-01-22. Federal due date: 2026-02-12.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Impact
Vite Vitejs contains an improper access control vulnerability that 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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | vite | >= 6.2.0, < 6.2.4 | 6.2.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Vitejs | Vite | before 4.5.11 from 5.0.0 before 5.4.16 from 6.0.0 before 6.0.13 from 6.1.0 before 6.1.3 from 6.2.0 before 6.2.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- CISA KEV catalog
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
- https://github.com/advisories/GHSA-4r4m-qw57-chr8
- https://nvd.nist.gov/vuln/detail/CVE-2025-31125