CVE-2025-31125: Vulnerability in Vitejs Vite
Actively exploited. Vite Vitejs contains an improper access control vulnerability that 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.
Exploited in the wild, npm, CWE-200, CWE-284
- Exploitation
- Confirmed 22 Jan 2026
- Severity
- 5.3 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- Agencies by 12 Feb 2026
Details
- Advisory ID
- GHSA-4r4m-qw57-chr8
- Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- Weakness
- CWE-200, CWE-284
- Published
- 31 Mar 2025
- Last change
- 17 Jun 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Vitejs Vite Before 4.5.11; From 5.0.0 before 5.4.16; From 6.0.0 before 6.0.13; From 6.1.0 before 6.1.3; From 6.2.0 before 6.2.4. Fixed in 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4
Affected packages
Vulnerable version ranges and fixed releases
- vite npm, Affected from 6.2.0 before 6.2.4. Fixed in 6.2.4
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes
Related
- Vite vulnerabilities Recent advisories, watch this product
- Exploited vulnerabilities Explorer, exploited only