CVE-2025-31125

Confirmed PUBLISHED

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

vitejs · vite

1 day faster than CISA KEV

Exploited in the wild PoC available

Recommended Action

Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.

Confidence
Confirmed
Exploitation Status
Exploited in the wild
Observed in Sensors
No
Attempts (30d)
Unique Attacker IPs
CISA KEV
In CISA KEV
CVSS / EPSS
5.3 Medium EPSS 62.1%

At a Glance

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.

cisa nuclei_scanner
CVE Published
Mar 31, 2025
Exploitation Reported
Jun 01, 2026
CVSS
5.3 Medium
EPSS
62.1%
Remote Unauthenticated

Affected Versions

Vendor Product Version Status
vitejs
vite

>= 6.2.0, < 6.2.4

Affected
vitejs
vite

>= 6.1.0, < 6.1.3

Affected
vitejs
vite

>= 6.0.0, < 6.0.13

Affected
vitejs
vite

>= 5.0.0, < 5.4.16

Affected
vitejs
vite

< 4.5.11

Affected

CVE References

Recommended Actions

  • Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
  • Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
  • Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.