CVE-2025-31125
Published 2025-03-31 · Updated 2026-06-17 · Source security-advisories@github.com
Summary
CVE-2025-31125 is a medium-severity (CVSS 5.3) vulnerability in Vite Vitejs. CISA added it to the Known Exploited Vulnerabilities catalog on January 22, 2026, which means exploitation in the wild has been confirmed; US federal agencies had to remediate it by February 12, 2026. CISA does not currently list it as used in ransomware campaigns.
All 1 known-exploited Vite vulnerabilities →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.
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
CISA Known-Exploited Vulnerability
Product: Vite — Vitejs
Name: Vite Vitejs Improper Access Control Vulnerability
Date added: 2026-01-22 · Due: 2026-02-12
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.
References
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125

