CVE-2025-31125: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
In CISA’s Known Exploited Vulnerabilities catalog: Vite Vitejs Improper Access Control Vulnerability.
Added , federal remediation due . Known ransomware use: Unknown.
Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
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.
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N · CWE-200, CWE-284
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
vitejs: vite
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 (opens in new tab)
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)