Skip to main content
All vulnerabilities
CVE-2025-31125

Vite Vitejs Improper Access Control Vulnerability

Vite — Vitejs

EPSS (30-day exploitation probability)
74.9% · 99.5th percentile · 20 November 2026
Added to KEV catalog
22 January 2026
Federal remediation due date
12 February 2026
Weakness classification (CWE)
CWE-200, CWE-284

Is CVE-2025-31125 actively exploited?

Yes. CISA added CVE-2025-31125 to its Known Exploited Vulnerabilities catalog on 22 January 2026, which means there is evidence it has been exploited in the wild. FIRST's EPSS model estimates a 74.9% probability of exploitation activity in the next 30 days, placing it in the 99.5th percentile of all scored CVEs.

How do I fix CVE-2025-31125?

CISA's required action for CVE-2025-31125 is: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. US federal agencies must remediate it by 12 February 2026; treat that as an outside deadline, not a target.

CISA Description

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.

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.

Notes

This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 ; https://nvd.nist.gov/vuln/detail/CVE-2025-31125

Confirm Your Exposure

Is this vulnerability present in your environment?

CRS delivers independent VAPT assessments that identify exactly which known-exploited vulnerabilities exist in your network, applications, and infrastructure.

Explore VAPT Services