CVE-2025-31125
Vite Vitejs Improper Access Control Vulnerability
Does this matter?
Known to be exploited in the wild (CISA KEV, CISA remediation deadline 12 February 2026). Treat as an emergency change: patch or isolate now, then hunt for prior compromise.
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 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 74.94% probability · 100th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Listed 22 January 2026 · due 12 February 2026
- Weakness
- CWE-200, CWE-284
- Affected
- vitejs/vite
- Source
- security-advisories@github.com
EPSS moved from 64.7% on 24 September 2026 to 74.9% on 30 October 2026. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”.
CISA notes
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. 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
References
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949Patch
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8Exploit, Vendor Advisory
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8Exploit, Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125US Government Resource
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.