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

IdentifierCVE-2025-31125
Base Severity / ScoreMEDIUM (5.3 / 10.0)
CVSS VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Weakness ClassificationCWE-200, CWE-284
Archive CategoriesMEDIUM 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

Related Security Advisories

CVE-2025-31124 MEDIUM 5.3
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