Skip to content
5.3 Medium Exploited

CVE-2025-31125 Vite Vitejs Improper Access Control Vulnerability

Active exploitation observed

· CISA KEV catalogue
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.
Ransomware campaigns Not observed so far
Weakness CWE-284, CWE-200

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.

Affected products and versions

Product Affected versions Fixed in
vite 6.2 6.2.0 → < 6.2.4 6.2.4
vite 6.1 6.1.0 → < 6.1.3 6.1.3
vite 6.0 6.0.0 → < 6.0.13 6.0.13
vite 5.0 5.0.0 → < 5.4.16 5.4.16
vite 4.5 earliest → < 4.5.11 4.5.11

References

Timeline

  1. Published
  2. Added to the KEV catalogue
  3. Last modified
The 28 CVEs of vite →
Track this CVE