CVE-2025-31125 — Vite Vitejs Improper Access Control Vulnerability
Overview
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.
Vulnerability details
- CVE ID
- CVE-2025-31125
- Vulnerability
- Vite Vitejs Improper Access Control Vulnerability
- Vendor
- Vite
- Affected products
- Vite: Vitejs
- Severity
- HIGH
- Exploitation status
- Actively exploited in the wild (CISA KEV)
- Published
- 2026-01-22
Remediation guidance
CVE-2025-31125 is in CISA's Known Exploited Vulnerabilities (KEV) catalog — U.S. federal civilian agencies are required to remediate it under Binding Operational Directive 22-01. Treat it as a priority for every environment.
Apply the vendor's official security update for Vite the affected product as soon as possible. Where a patch is unavailable, apply vendor mitigations or isolate/segment exposed systems.
Hunt for indicators of compromise tied to this vulnerability and confirm logging/EDR coverage on affected assets.
Authoritative references
Remediate CVE-2025-31125 — and stay ahead of the next one
CVE-2025-31125 is listed in the CISA KEV catalog as actively exploited — treat remediation as urgent. Scan your domain free to see whether CVE-2025-31125 and other Vite issues affect you and get a prioritized remediation report (full report from ₹999) — or stream the full feed of 1,600+ actively-exploited CVEs straight into your SOC.
📡 Get a free alert the moment a CVE like this lands in the KEV catalog → Join Sentinel APEX on Telegram