CVE-2025-31125: Vite Vitejs Improper Access Control
Vitejs · listed in the CISA catalog of actively exploited vulnerabilities since 2026-01-22.
- CVSS v3.1 (CVE record)
- 5.3
- medium
- EPSS (exploit probability, 30 days)
- 75%
- higher than 99.5% of all CVEs
- Added to CISA KEV
- 2026-01-22
- US federal due date 2026-02-12
- Automatable (CISA SSVC)
- no
- technical impact: total
What is CVE-2025-31125?
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.
CISA 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.
CISA 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: github.com/vitejs/vite/commit/5967313…
- nvd.nist.gov/vuln/detail/CVE-2025-31125
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- vitejs viteAffectedFixed in
- < 4.5.11
- 5.0.0
- < 5.4.16
- 6.0.0
- < 6.0.13
- 6.1.0
- < 6.1.3
- 6.2.0
- < 6.2.4
not stated
| Product | Affected | Fixed in |
|---|---|---|
| vitejs vite |
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: github.com/vitejs/vite/commit/5967313…
- CISA's deadline for US federal agencies: 2026-02-12 (passed) – a useful benchmark for everyone else, too.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor, CWE-284 Improper Access Control
References
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.