MEDIUM · CVSS 5.3 Published: 2025-03-31
CVE-2025-31125 — Technical Security Advisory & CVSS Profile
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.
Technical Metadata
| Identifier | CVE-2025-31125 |
|---|---|
| Base Severity / Score | MEDIUM (5.3 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| Weakness Classification | CWE-200, CWE-284 |
| Archive Categories | MEDIUM Advisories · 2025 Index |
Operational Mitigation Guidance
Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- 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
Related Security Advisories
CVE-2025-31124 MEDIUM 5.3
CVE-2025-31131 HIGH 8.6
CVE-2025-31121 MEDIUM 5.4
CVE-2025-31136 MEDIUM 6.7
CVE-2025-31138 MEDIUM 5.5
CVE-2025-31139 MEDIUM 4.3
CVE-2025-31140 MEDIUM 4.6