Vite Vitejs Improper Access Control
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 deadline 2026-02-12 · passed 6 months ago · applies to US federal civilian agencies; used elsewhere as a reference SLA
What happened
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.
Who is affected
Vite Vitejs. Affected version ranges are listed in the vendor advisory and the NVD entry linked under Sources.
Weakness class: CWE-200, CWE-284.
Timeline
- Added to CISA KEVExploitation in the wild confirmed by CISA
- CISA remediation deadlinepassed 6 months ago
Sources
- NVD entry for CVE-2025-31125 nvd.nist.gov/vuln/detail/CVE-2025-31125
- CISA Known Exploited Vulnerabilities catalog www.cisa.gov/known-exploited-vulnerabilities-catalog
- github.com github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- nvd.nist.gov nvd.nist.gov/vuln/detail/CVE-2025-31125