Skip to main content
ExploitedIn CISA KEVFix available

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?

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 UTC
  1. 2025-03-3117:15CVE publishedNVD
  2. 2026-01-22Added to the CISA KEV catalogCISA KEV
  3. 2026-01-22Listed as exploited by GCVEGCVE
  4. 2026-01-22Exploitation first reportedCISA KEV
  5. 2026-01-2316:58SSVC exploitation set to activeCISA-ADP

Versions per branch

NVD · OSV
Vitejs vite
BranchAffectedFixed in
6.2≥ 6.2.0, < 6.2.46.2.4
6.1≥ 6.1.0, < 6.1.36.1.3
6.0≥ 6.0.0, < 6.0.136.0.13
5.x≥ 5.0.0, < 5.4.165.4.16
4.5< 4.5.114.5.11

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 vite
    Affected
    • = >= 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

  • CVE-2025-31125 Red Hat Product Security6 known affected

    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

Full record on NVD

Fix

  1. Update Vitejs vite to 6.2.4 · 6.1.3 · 6.0.13 · 5.4.16 · 4.5.11
  2. 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
  3. No fix planned, says the vendor Red Hat Product Security CVE-2025-31125 · 6 productsOut of support scope

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
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

Identifiers

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?

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.

Is CVE-2025-31125 actively exploited?

Yes. CVE-2025-31125 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning it has been confirmed as actively exploited in the wild. CISA requires federal agencies to patch by 2026-02-12.

What is the CVSS score for CVE-2025-31125?

CVE-2025-31125 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

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

Sources for this record