CVE-2025-31125

MEDIUM CISA KEV
Published Mar 31, 2025 Modified Jan 23, 2026 CWE-200 CWE-284

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.

CVSS v3.1 Score

5.3
MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

CISA Known Exploited Vulnerability

This vulnerability is actively exploited in the wild.

Added: Jan 22, 2026 Remediation due: Feb 12, 2026

Weakness Type (CWE)

CWE-200 CWE-200
CWE-284 CWE-284

Affected Products

Vendor Product
vitejs vite
vitejs vite
vitejs vite
vitejs vite
vitejs vite

References

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. It has a CVSS v3.1 base score of 5.3 (MEDIUM). This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild.
How severe is CVE-2025-31125? +
CVE-2025-31125 has a CVSS v3.1 score of 5.3 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-31125? +
CVE-2025-31125 affects products from vitejs, specifically: vite. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-31125? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-31125 — free, no signup required.

Start Free Scan