Actively exploited · Published Mar 31, 2025 · Assigned by GitHub_M

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

Medium 5.3 Exploited

In plain English

A medium-severity information exposure in vite from vitejs. Attackers are actively exploiting it in the wild (listed by CISA on January 22, 2026). The chance it is exploited in the next 30 days is estimated at 74.9% (higher than 99.5% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)74.9%top 0.5% of all CVEs
Exploited in the wildYesCISA KEV since Jan 22, 2026
Attack tooling2Nuclei, Public PoC

CISA guidance

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Federal agencies must remediate by Feb 12, 2026.

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmvite6.2.4GHSA-4r4m-qw57-chr8
npmvite6.1.3GHSA-4r4m-qw57-chr8
npmvite6.0.13GHSA-4r4m-qw57-chr8
npmvite5.4.16GHSA-4r4m-qw57-chr8
npmvite4.5.11GHSA-4r4m-qw57-chr8

Affected products (as reported)

VendorProductVersions
vitejs vite >= 6.2.0, < 6.2.4>= 6.1.0, < 6.1.3>= 6.0.0, < 6.0.13>= 5.0.0, < 5.4.16< 4.5.11

Weakness: CWE-200, CWE-284 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

References