CVE-2025-31125
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.
Severity
MEDIUM
CVSS v3
5.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N · source cna
Exploit chance (EPSS)
74.939%
chance of exploitation in the next 30 days
higher than 99.5% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2026-01-22
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-284: Improper Access Control
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Vite Vitejs Improper Access Control Vulnerability |
|---|---|
| Vendor / product | Vite / Vitejs |
| Date added | 2026-01-22 |
| Federal remediation due date | 2026-02-12 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-01-23 |
Timeline
- 2025-03-31Published by the CNA17:06 UTC
- 2025-03-31GitHub advisory published (GHSA-4r4m-qw57-chr8)same day
- 2026-01-22Added to the CISA KEV catalog297 days after publication
- 2026-01-23CISA SSVC decision recorded298 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2025-31125: Vite Development Server - Path Traversal
GitHub advisory GHSA-4r4m-qw57-chr8, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm vite | before 4.5.11 | 4.5.11 |
| npm vite | from 5.0.0 before 5.4.16 | 5.4.16 |
| npm vite | from 6.0.0 before 6.0.13 | 6.0.13 |
| npm vite | from 6.1.0 before 6.1.3 | 6.1.3 |
| npm vite | from 6.2.0 before 6.2.4 | 6.2.4 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| vitejs vite | before 4.5.11fixed in 4.5.11from 5.0.0 before 5.4.16fixed in 5.4.16from 6.0.0 before 6.0.13fixed in 6.0.13from 6.1.0 before 6.1.3fixed in 6.1.3from 6.2.0 before 6.2.4fixed in 6.2.4 | 4.5.115.4.166.0.136.1.36.2.4 |
References
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-31125'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-31125'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-31125'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-31125'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2025-31125'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).