CVE-2025-31125
Vite Vitejs Improper Access Control Vulnerability
- Actively exploited
- High · 7.5 of 10
- Exploited since
- 22 Jan 2026 added to the CISA list
- Chance of attacks
- 75% in the next 30 days (FIRST EPSS)
- Fix deadline
- 12 Feb 2026 for US federal agencies
- Published
- 31 Mar 2025 in the NVD
What this means
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.
CISA
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.
NIST National Vulnerability Database
What to do
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- vitejs vite
Official sources
- nvd.nist.gov/vuln/detail/CVE-2025-31125
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 vendor advisory
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 vendor advisory
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.