CVE-2025-31125
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/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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
| Vendor | Product | Versions |
|---|---|---|
| Vitejs | Vite | < 4.5.11 |
| Vitejs | Vite | >= 5.0.0, < 5.4.16 |
| Vitejs | Vite | >= 6.0.0, < 6.0.13 |
| Vitejs | Vite | >= 6.1.0, < 6.1.3 |
| Vitejs | Vite | >= 6.2.0, < 6.2.4 |
References
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8Exploit, Vendor Advisory
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8Exploit, Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125US Government Resource
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-31125?
How severe is CVE-2025-31125?
How do I fix CVE-2025-31125?
Are you affected by CVE-2025-31125?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
