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?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-3112CWE-400: Uncontrolled Resource Consumption vulnerability exi…7.1
- CVE-2025-31120NamelessMC is a free, easy to use & powerful website softwar…5.3
- CVE-2025-31121OpenEMR is a free and open source electronic health records …5.4
- CVE-2025-31122scratch-coding-hut.github.io is the website for Coding Hut. …9
- CVE-2025-31123Zitadel is open-source identity infrastructure software. A v…8.7
- CVE-2025-31124Zitadel is open-source identity infrastructure software. ZIT…5.3
- CVE-2025-31126Element X iOS is a Matrix iOS Client provided by Element. In…5.3
- CVE-2025-31127Element X Android is a Matrix Android Client provided by ele…5.3
- CVE-2025-31128gifplayer is a customizable jquery plugin to play and stop a…6.9
- CVE-2025-31129Jooby is a web framework for Java and Kotlin. The pac4j io.j…8.8
- CVE-2025-3113A valid, authenticated user with sufficient privileges and w…9
- CVE-2025-31130gitoxide is an implementation of git written in Rust. Before…6.8
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
