Vulnerability details

CVE-2025-31125

Actively exploited
vitejs vite

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

CVSS 3.1
5.3Medium

Remedy

Required action (CISA): Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. (due: 2026-02-12)

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.

CVSS scores

ScoreVersionSourceVector
5.3Medium 3.1 CVEProject cvelistV5 (CNA) (GitHub_M) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected products

VendorProductVersionsSource
vitejs vite < 4.5.11 CVEProject cvelistV5 (CNA)
vitejs vite >= 5.0.0, < 5.4.16 CVEProject cvelistV5 (CNA)
vitejs vite >= 6.0.0, < 6.0.13 CVEProject cvelistV5 (CNA)
vitejs vite >= 6.1.0, < 6.1.3 CVEProject cvelistV5 (CNA)
vitejs vite >= 6.2.0, < 6.2.4 CVEProject cvelistV5 (CNA)

References and advisories

3
Kolun on Telegram @kolunsec Exploited CVEs, key news and a daily digest Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.

Details

Published
2025-03-31
Last updated
2026-01-23
State
Published
Assigner (CNA)
GitHub_M
Kolun priority
73 · High

CISA KEV catalog

Date added
2026-01-22
Due date
2026-02-12
Used in ransomware
Unknown

Exploit prediction (EPSS)

74.93%
Probability of exploitation in 30 days
99.5%
Percentile (among all CVEs)

SSVC assessment (CISA)

Automatable
No
Exploitation
Active
Technical impact
Total

Weaknesses (CWE)

  • CWE-200
    Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-284
    Improper Access Control