CVE-2025-31125 kev in the critical feed json
Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
published 2025-03-31 19 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-8866 , GHSA-4r4m-qw57-chr8
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Exploited
- added 2026-01-22
- epss
- 74.9%
- EPSS 74.9% chance of exploitation in 30 days, percentile 99.5%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
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.
- npm vite 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4
- vitejs vite 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-31125 updated cvss 5.3
vite: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
-
Red Hat OpenShift distributed tracing 3 rhosdt/tempo-rhel8, rhosdt/tempo-query-rhel8, rhosdt/tempo-gateway-rhel8, rhosdt/tempo-rhel8-operator, rhosdt/tempo-gateway-opa-rhel8, rhosdt/tempo-jaeger-query-rhel8affected: no fix planned “Out of support scope”
-
Red Hat Ansible Automation Platform 2 automation-gateway, automation-controller, automation-eda-controller Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent Red Hat JBoss Enterprise Application Platform Expansion Pack org.keycloak-keycloak-parentnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- Added to CISA KEV
- CISA SSVC: exploitation active
- CISA patch deadline
Known exploited
- Added
- 9 mo ago
- Patch by
- 2026-02-12 (8 mo ago)
- Ransomware
- Not known
- 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.
- Vendor, product
- Vite, Vitejs
- CISA name
- Vite Vitejs Improper Access Control Vulnerability
CISA SSVC
- Exploitation
- Active, exploited in the wild
- Automatable
- no
- Technical impact
- total
- Assessed
- 9 mo ago
Exploit prediction
74.94% chance of exploitation in the next 30 days, higher than 99.5% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Vite Development Server - Path Traversal nuclei detection template
- github.com https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vite | >=6.2.0, <6.2.4 >=6.1.0, <6.1.3 >=6.0.0, <6.0.13 >=5.0.0, <5.4.16 <4.5.11 |
6.2.4 6.1.3 6.0.13 5.4.16 4.5.11 |
Affected products
- vitejs vite
Classification
References
-
github.com
/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
web, patch
-
github.com
/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
exploit, web, vendor-advisory
-
cisa.gov
/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
government-resource, web, us-government-resource
-
nvd.nist.gov
/vuln/detail/CVE-2025-31125
advisory
-
github.com
/vitejs/vite
package
Sources
- CVE List CVE-2025-31125
- GitHub Advisory GHSA-4r4m-qw57-chr8
- NVD CVE-2025-31125
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.