NetSight
medium5.3Known exploited

CVE-2025-31125

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

Exploited in the wild

This vulnerability is on the CISA Known Exploited Vulnerabilities list, added 2026-01-22. Federal due date: 2026-02-12.

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

Impact

Vite Vitejs contains an improper access control vulnerability that 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.

Affected packages

EcosystemPackageAffectedFixed in
npmvite>= 6.2.0, < 6.2.46.2.4

Affected products

VendorProductAffected versions
VitejsVite
before 4.5.11
from 5.0.0 before 5.4.16
from 6.0.0 before 6.0.13
from 6.1.0 before 6.1.3
from 6.2.0 before 6.2.4

Weakness classification

References