SARA / Free Tools / CVE / CVE-2025-31125

CVE-2025-31125 — Vite Vitejs Improper Access Control Vulnerability

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

CVSS
5.3 MEDIUM
EPSS
74.41% (top 1.20%)
CWE
CWE-200, CWE-284
Published
2025-03-31T17:06:30.704Z
Last modified
2026-01-23T16:58:37.048Z
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
CISA KEV — Actively Exploited
Added to KEV
2026-01-22
BOD 22-01 due
2026-02-12
Ransomware use
Unknown

01What is this vulnerability?

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.

02Affected products

VendorProductVersions
vitejsvite>= 6.2.0, < 6.2.4, >= 6.1.0, < 6.1.3, >= 6.0.0, < 6.0.13, >= 5.0.0, < 5.4.16, < 4.5.11

03Active exploitation status

Yes — actively exploited. Added to the CISA KEV catalog on 2026-01-22. Ransomware use: Unknown.

04Recommended remediation

05Technical details

For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.

06Detection signatures

Open the Sigma generator with a pre-filled prompt for this CVE to draft a starting detection in your stack of choice:

Open in Sigma generator →

07Related CVEs

No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.

08Timeline

09References

Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →