CVE-2025-31125
Medium 5.3KEV · exploitedFix status unknownVite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Among the highest-scored CVEs. A prediction, not evidence.
CISA remediation deadline
Passed 282 days ago for U.S. federal agencies
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.
Weakness: CWE-200, CWE-284
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Vite | Vitejs | Not documented | Not documented | CISA KEV |
| vitejs | vite | < 4.5.11 | Not documented | CVE Program |
| vitejs | vite | >= 5.0.0, < 5.4.16 | Not documented | CVE Program |
| vitejs | vite | >= 6.0.0, < 6.0.13 | Not documented | CVE Program |
| vitejs | vite | >= 6.1.0, < 6.1.3 | Not documented | CVE Program |
| vitejs | vite | >= 6.2.0, < 6.2.4 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
22 Jan 2026KEV
Added to the CISA Known Exploited Vulnerabilities catalog
Source: CISA KEV (opens in a new tab)
22 Jan 2026Exploitation
Exploitation confirmed by CISA KEV
Source: CISA KEV (opens in a new tab)
Vendor guidance and references
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 (opens in a new tab)vendor-advisory, x_refsource_misc
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 (opens in a new tab)x_refsource_confirm
- https://nvd.nist.gov/vuln/detail/CVE-2025-31125 (opens in a new tab)government
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125 (opens in a new tab)government-resource