CVE-2025-31125
Exploitation confirmed. First attested on 2026-01-22 by CISA-ADP, CISA KEV, GCVE · kevintel.
- Published2025-03-31
- Fixed in6.2.4 · 6.1.3 · 6.0.13 · 5.4.16 · 4.5.11
- WeaknessCWE-200 · CWE-284
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTCVersions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.2 | ≥ 6.2.0, < 6.2.4 | 6.2.4 | NVD · OSV |
| 6.1 | ≥ 6.1.0, < 6.1.3 | 6.1.3 | NVD · OSV |
| 6.0 | ≥ 6.0.0, < 6.0.13 | 6.0.13 | NVD · OSV |
| 5.x | ≥ 5.0.0, < 5.4.16 | 5.4.16 | NVD · OSV |
| 4.5 | < 4.5.11 | 4.5.11 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- vitejs viteAffected
- = >= 6.2.0, < 6.2.4no fix stated
- = >= 6.1.0, < 6.1.3no fix stated
- = >= 6.0.0, < 6.0.13no fix stated
- = >= 5.0.0, < 5.4.16no fix stated
- = < 4.5.11no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-03-31
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- langfuse-2-workerChainguardall versions · fixed in 2.95.12-r26
- langfuse-fips-2-workerChainguardall versions · fixed in 2.95.12-r28
- trigger-devMinimOSall versions · fixed in 4.5.11-r1
- viteTuxCare:npmfrom 4.5.5-tuxcare.0 · fixed in 4.5.5-tuxcare.1
- viteTuxCare:npmfrom 5.4.14-tuxcare.0 · fixed in 5.4.14-tuxcare.2
- viteTuxCare:npmfrom 2.9.18-tuxcare.0 · fixed in 2.9.18-tuxcare.1and 1 other package
- viteTuxCare:npmfrom 3.2.11-tuxcare.0 · fixed in 3.2.11-tuxcare.1and 1 other package
- viteTuxCare:npmfrom 4.1.5-tuxcare.0 · fixed in 4.1.5-tuxcare.1
3 more package ranges on OSV.dev
Vendor advisories
vite: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
rhosdt/tempo-gateway-opa-rhel8 as a component of Red Hat OpenShift distributed tracing 3 · rhosdt/tempo-gateway-rhel8 as a component of Red Hat OpenShift distributed tracing 3 · rhosdt/tempo-jaeger-query-rhel8 as a component of Red Hat OpenShift distributed tracing 3 · +3 more
Fix
- Update Vitejs vite to 6.2.4 · 6.1.3 · 6.0.13 · 5.4.16 · 4.5.11
- CISA’s 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.due 2026-02-12
- No fix planned, says the vendor Red Hat Product Security CVE-2025-31125 · 6 productsOut of support scope
Advisories and patches
- github.comPatch
- github.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub4 repositories, unverifiedknown since 2026-11-01sunhuiHi666/CVE-2025-31125MuhammadWaseem29/Vitejs-exploit0xgh057r3c0n/CVE-2025-31125harshgupptaa/Path-Transversal-CVE-2025-31125-
- Metasploit modules
- none listed Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2026-01-22
- Patch Due Date
- 2026-02-12
- 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.
Sources
- CISA KEVKEV entry2026-01-22
- ENISA EUVDexploitation2026-01-222026-01-22
- GCVEexploitation2026-01-22
- CISA-ADPSSVC decisionactive2026-01-23
- CNACVSS 3.15.3known since 2026-10-23
- NVDCVSS 3.17.5read 2026-10-23
- CNAweakness (CWE)CWE-200, CWE-284known since 2026-10-23
- FIRST EPSSEPSS score74.9 %read 2026-11-17
- PoC-in-GitHubproof of concept4known since 2026-11-01
- ProjectDiscoverydetectionread 2026-11-17
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2025-03-31
Identifiers
- CGA-263v-cc49-26mjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4896-x53g-6fgmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8552-282p-qpj2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-q93q-3rhq-qgm9same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-8866same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-4r4m-qw57-chr8same flawGitHub Advisory Database · CC-BY-4.0
- MINI-qj5j-42h3-7rfgsame flawMinimOS · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Published
- 2025-03-31
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-4r4m-qw57-chr8
Frequently asked questions
What is CVE-2025-31125?
Is CVE-2025-31125 actively exploited?
What is the CVSS score for CVE-2025-31125?
Running vite? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-4r4m-qw57-chr8
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0