# CVE-2025-31125: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

> CVE-2025-31125: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query. CVSS 5.3 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2025-31125
Last updated: 2026-06-17T09:09:54Z

- Published: 2025-03-31 17:06 UTC · Updated: 2026-06-17 09:09 UTC · Assigner: GitHub\_M
- CVSS: 5.3 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 65.8%, 99th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2026-01-22, federal due date 2026-02-12, ransomware use: Unknown
- CWE: CWE-200, CWE-284

## 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.

## CISA 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.

## Affected vendors and products

- vitejs: vite

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-31125)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-31125)
- [https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949](https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949)
- [https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8](https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-31125 · Markdown: https://rewindex.com/cve/CVE-2025-31125.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-31125 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:13:40.802Z
