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
| Score | Version | Source | Vector |
|---|---|---|---|
| 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
| Vendor | Product | Versions | Source |
|---|---|---|---|
| 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- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 x_refsource_MISC
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 x_refsource_CONFIRM
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125 government-resource
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-200Exposure of Sensitive Information to an Unauthorized Actor
- CWE-284Improper Access Control