CVE-2025-31125

published 31 Mar 2025 · updated 23 Jan 2026

Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

9.3CriticalCVSS 5.3EPSS 75%CISA KEV · due 12 Feb 20262 public exploits

Exploited in the wild, in CISA KEV since 22 Jan 2026 (due 12 Feb 2026), with 2 public exploits. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ViteVitejs
vitejs<4.5.11, >=5.0.0 <5.4.16, >=6.0.0 <6.0.13, >=6.1.0 <6.1.3, >=6.2.0 <6.2.4

Exploit evidence

2 public sources

kev

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-31125 severity on Zeptric[![CVE-2025-31125](https://zeptric.io/badge/cve/CVE-2025-31125.svg)](https://zeptric.io/cve/CVE-2025-31125)