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…

Vulnerability class: Information Disclosure

EPSS: 0.832 (99.3th percentile) — read the EPSS interpretation.

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.

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

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.