CVE-2025-31125
Severity CVSS v4.0:
Pending analysis
Type:
CWE-200
Information Leak / Disclosure
Publication date:
31/03/2025
Last modified:
23/01/2026
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.
Impact
Base Score 3.x
5.30
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* | 4.5.11 (excluding) | |
| cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* | 5.0.0 (including) | 5.4.16 (excluding) |
| cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* | 6.0.0 (including) | 6.0.13 (excluding) |
| cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* | 6.1.0 (including) | 6.1.3 (excluding) |
| cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* | 6.2.0 (including) | 6.2.4 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125



