[ CVE-2025-31125 · Published 31 Mar 2025 ]
Vite Vitejs Improper Access Control Vulnerability
[ Why it matters ]Priority signals
- Exploited in the wild: on CISA's Known Exploited Vulnerabilities list since 2026-01-22
- EPSS: 65% chance of exploitation in the next 30 days (higher than 99% of CVEs)
[ Description ]Official 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: 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.
[ Fixes ]Fixes and patches
CISA required action (US federal deadline 12 Feb 2026): Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ References ]References
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949Patch
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8ExploitVendor Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalogUS Government Resource