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.
Why it matters
CISA added CVE-2025-31125 to its Known Exploited Vulnerabilities (KEV) catalog on 2026-01-22 — meaning it is confirmed to be exploited in the wild, not just theoretically risky. US federal agencies had to remediate it by 2026-02-12, and it is a high priority for everyone else too.
How to fix it
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Details
- Affected: Vite Vitejs
- Added to CISA KEV: 2026-01-22
- Federal remediation due: 2026-02-12
- Weakness: CWE-200, CWE-284
- EPSS: 74.9% chance of exploitation in the next 30 days, higher than 100% of all CVEs
- Reference: NVD entry for CVE-2025-31125
Affected open-source packages
The GitHub Advisory Database links CVE-2025-31125 to this package. Each page lists every advisory for the package, the affected versions and the fixed release:
- vite npm
Is CVE-2025-31125 in your fleet?
SkyShield scans your servers, containers and cloud for vulnerable packages and images (Trivy), ranks them by whether they're on CISA KEV and their EPSS exploit probability, and shows the fix per machine. Start free.