Exploited vulnerabilities · Vite
CVE-2025-31125
Vite Vitejs Improper Access Control Vulnerability
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.
Description in the NVD
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.
Required action according to CISA
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
What to do now
- Check your exposureFind out whether Vite Vitejs runs anywhere in your environment, including systems of suppliers.
- Patch or mitigateApply the vendor update. If that is not possible at once, use the vendor's mitigation or take the system off the network.
- Look for signs of an attackThis vulnerability is exploited in real attacks. Review the logs of affected systems for the time before the patch.
References
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
- nvd.nist.gov/vuln/detail/CVE-2025-31125
- github.com/advisories/GHSA-4r4m-qw57-chr8
- nvd.nist.gov/vuln/detail/CVE-2025-31125
Data: CISA Known Exploited Vulnerabilities Catalog and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.