5.3

CVE-2025-31486: vitejs vite

CVSS: 5.3v3.1MediumDeferred
AliasesGHSA-xcj6-pq6g-qj4xCGA-fg68-7pxm-f4w3CGA-vjgq-m8vq-pppj
Published 03-04-2025Last modified 03-04-2025

Vulnerability summary

CVE-2025-31486 is a medium (CVSS 5.3) vulnerability in vitejs vite. EPSS estimates a 40.46% chance of exploitation in the next 30 days, higher than 98.6% of scored vulnerabilities.

Overall risk
29/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
40.46%
0%100%
High · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 03-04-2025
    PublishedVulnerability first disclosed.
  2. 03-04-2025
    Last modifiedVulnerability information updated.

Description

Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass. This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. 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 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

40.46%

Chance of exploitation in the next 30 days

Percentile

99%

Versus all other CVEs

30-day change

0.00 pp

From 40.46% on 20-09-2026

20-09-202620-10-2026
EPSS score
40.46%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard2 products
  • langfuse-2-worker< 2.95.12-r26
  • langfuse-fips-2-worker< 2.95.12-r28
Npm1 product
  • vite≥ 6.2.0, < 6.2.5 | ≥ 6.1.0, < 6.1.4 | ≥ 6.0.0, < 6.0.14 | ≥ 5.0.0, < 5.4.17 | < 4.5.12
Vitejs1 product
  • vite< 4.5.12 | ≥ 5.0.0, < 5.4.17 | ≥ 6.0.0, < 6.0.14 | ≥ 6.1.0, < 6.1.4 | ≥ 6.2.0, < 6.2.5

3 vendors · 4 products

References

6 links