Skip to content

Vite

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

CVE-2025-31125Published 31 Mar 2025, 17:06 UTC

Real-world risk

8.0/ 10High

Act now: it is being exploited.

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.3

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
ViteUbiquitous>= 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.116.2.4, 6.1.3, 6.0.13, 5.4.16, 4.5.11

What to do

Update to a fixed version: 6.2.4, 6.1.3, 6.0.13, 5.4.16, 4.5.11.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T5: Exploited in the wild (× 1.00)

On CISA KEV or VulnCheck KEV, flagged exploited by ENISA's EUVD, CISA's SSVC says active, or the vendor's or CNA's own page says it is exploited

  • On CISA’s Known Exploited Vulnerabilities list
  • Public proof of concept on GitHub
  • Nuclei scanner template (link)
  • Reference tagged as exploit (link)
  • CISA SSVC: exploitation active

EPSS 74.9% chance of exploitation in 30 days (percentile 100), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.315
  2. Threat T5: Exploited in the wild1.000
  3. 10 × impact 0.8 × prerequisites 0.315 × threat 12.520
  4. Exploited in the wild: attackers have already met the prerequisites, so they count only by their square root4.490
  5. Exploited in the wild: at least 88.000
  6. Rounded to one decimal between 0.1 and 108.0

How the score works

Exploitation and evidence timeline

  1. 31 Mar 2025 Published
  2. 22 Jan 2026 Added to CISA KEV
  3. 3 Dec 2026 Public proof of concept on GitHub first seen
  4. 3 Dec 2026 Nuclei scanner template first seen
  5. 3 Dec 2026 Reference tagged as exploit first seen
  6. 3 Dec 2026 CISA SSVC: exploitation active first seen
  7. 3 Dec 2026 Risk 8.0 (cvss fallback)

Weakness

CWE-200, CWE-284

References

Get alerts for Vite

Free email or text alerts when a vulnerability in Vite reaches risk 8 or higher. Nothing else.