CVE-2025-31125

HIGHCVSS 7.5/10Actively ExploitedEPSS 62.10%

Last modified

CVE-2025-31125 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. CISA has confirmed active exploitation in the wild. EPSS estimates a 62.10% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS Probability
62.10%

99.1th percentile

Probability of exploitation in the next 30 days. Learn more

Exploitation Status

This vulnerability is listed in CISA’s Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. Federal agencies must remediate by .

Weakness Enumeration

Affected Software

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

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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.
How severe is CVE-2025-31125?
CVE-2025-31125 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 62.10% probability of exploitation in the next 30 days. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog.
How do I fix CVE-2025-31125?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2025-31125?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST