Information disclosure in Vitejs Vite
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.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.652 (99.2th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 99th percentile — 99.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.585 · newest: 0.652 · change: +0.067
Affected products
- Vitejs Vite — versions >= 6.2.0, < 6.2.4, >= 6.1.0, < 6.1.3, >= 6.0.0, < 6.0.13
Weakness classification (CWE)
CISA KEV (Known Exploited Vulnerabilities)
This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.
BOD 22-01 due date: .
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.
Public proof-of-concept exploits
References
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 (Exploit, Vendor Advisory)
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 (Patch)
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 (US Government Resource)
Frequently asked questions
- What is CVE-2025-31125?
- CVE-2025-31125 is a medium-severity vulnerability in Vitejs Vite, classified under Information Disclosure. CVSS score: 5.3/10. Published 2025-03-31.
- How severe is CVE-2025-31125?
- Medium severity. CVSS v3 base score is 5.3 out of 10.
- Is CVE-2025-31125 known to be exploited?
- Yes. CVE-2025-31125 is listed in the CISA Known Exploited Vulnerabilities catalog (added 2026-01-22), indicating it is being actively exploited. 19 public proof-of-concept repositories are indexed.