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.
CVE-2025-31125
“▲” beside the score: it is higher than NVD's CVSS score.
Score elevated to 9.0 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2026-01-22), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 5.3 retained for reference. The 9.0 is the floor for confirmed exploitation, not an impact rating: this CVE's impact severity (EG Severity) is CVSS 5.3 MEDIUM under GitHub Security Advisory CVSS. Confidence: HIGH.
Also known asEUVD-2025-8866 (ENISA EUVD) · GHSA-4r4m-qw57-chr8 (GitHub Security Advisories)Source: ENISA EUVD
- Actively exploited in the wild (CISA-KEV) — the reason this is sooner than the SSVC decision on this page at low or medium mission impact
A fix is available — apply it.
- CVSS v3
- 5.3
- EG Score
- 9.0CRITICALhigh confidence
- EG Risk
- 64EG Risk 64/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity53% × 45%Impact severity (EG Severity): CVSS 5.3 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation100% × 40%Fixed at 100% for a CISA KEV listing: EchelonGraph's rule.Automatability0% × 15%CISA's SSVC Automatable value: no (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at low, Attend at medium and Act at high mission impact.Exploitation active (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low, sooner than that at medium and as soon as possible at high mission impact. - EPSS PROB
- 75%
- EPSS %ILE
- 99th
- KEV
- ⚠ Exploited
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.0): severity, escalated by confirmed exploitation. This CVE's 9.0 is the CISA KEV floor for confirmed exploitation, not an impact rating: its impact severity (EG Severity) is CVSS 5.3 MEDIUM.
- EG Severity
- 5.3 MEDIUMCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- 75% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-01). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- CISA KEV and EG-KEV Tier 1 (exploited in the wild)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Attend at medium mission impactTrack at low, Attend at medium and Act at high mission impact.CISA BOD 26-04: 3 days & forensic triage if the affected system is publicly exposed; 14 days if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low, Attend at medium and Act at high mission impact.
A fix is available. Apply it within your standard update timelines at low, sooner than that at medium and as soon as possible at high mission impact.
Exploitation active (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)3 days & forensic triage if the affected system is publicly exposed; 14 days if it is not.
The score's inputs: In CISA KEV yes (CISA's KEV catalog) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
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.”
Quoted verbatim from CISA's Known Exploited Vulnerabilities catalog. CISA directs it at US federal civilian executive branch agencies under Binding Operational Directive (BOD) 26-04, which replaced BOD 22-01 on 10 June 2026; it is not EchelonGraph's advice. CISA's notes: https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 · https://nvd.nist.gov/vuln/detail/CVE-2025-31125
Published
March 31, 2025
Last Modified
January 23, 2026
Advisory Details (3)
Auto-updated Oct 27, 2026Known Exploited Vulnerabilities Catalog | CISA
Known Exploited Vulnerabilities Catalog | CISA. Listed in CISA Known Exploited Vulnerabilities catalog.
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125`server.fs.deny` bypassed for `inline` and `raw` with `?import` query · Advisory · vitejs/vite · GitHub
https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8commit 59673137c45a (vitejs/vite)
Patch available: vitejs/vite v8.1.2 (contains commit 59673137c45a)
https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949Patch Availability(5)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| npm | vite @ 6.2.4 (fixes >= 6.2.0, < 6.2.4) | — | ghsa |
| npm | vite @ 6.1.3 (fixes >= 6.1.0, < 6.1.3) | — | ghsa |
| npm | vite @ 4.5.11 (fixes < 4.5.11) | — | ghsa |
| npm | vite @ 6.0.13 (fixes >= 6.0.0, < 6.0.13) | — | ghsa |
| npm | vite @ 5.4.16 (fixes >= 5.0.0, < 5.4.16) | — | ghsa |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| vite | — |
| — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 16× in last 7d / 55× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
Showing the most recent 98 of 283 refreshes on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 2 repeat rows among the latest 100 are merged into the row they repeat. The 185 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-11-01 22:45 UTCEG score recompute
- 2026-11-01 22:45 UTCGHSA enrichmentGHSA-4r4m-qw57-chr8 · GitHub severity MODERATE · GitHub CVSS 5.3
- 2026-11-01 08:07 UTCGHSA enrichmentGHSA-4r4m-qw57-chr8 · GitHub severity MODERATE · GitHub CVSS 5.3
- 2026-11-01 08:07 UTCEG score recompute
- 2026-10-31 23:08 UTCEG score recompute
- 2026-10-31 16:31 UTCEPSS rescoreEPSS 75% · 99th percentile
- 2026-10-30 23:31 UTCEG score recompute
- 2026-10-30 16:32 UTCEPSS rescoreEPSS 75% · 99th percentile
- 2026-10-29 23:54 UTCEG score recompute
- 2026-10-29 16:31 UTCEPSS rescoreEPSS 75% · 99th percentile
- 2026-10-29 00:16 UTCEG score recompute
- 2026-10-28 16:30 UTCEPSS rescoreEPSS 66% · 99th percentile
- 2026-10-28 00:39 UTCEG score recompute
- 2026-10-27 16:30 UTCEPSS rescoreEPSS 66% · 99th percentile
- 2026-10-27 01:01 UTCEG score recompute
- 2026-10-26 16:29 UTCEPSS rescoreEPSS 66% · 99th percentile
- 2026-10-25 16:35 UTCEG score recompute
- 2026-10-25 16:31 UTCEPSS rescoreEPSS 66% · 99th percentile
- 2026-10-25 01:45 UTCEG score recompute
- 2026-10-24 16:31 UTCEPSS rescoreEPSS 66% · 99th percentile
- 2026-10-24 02:08 UTCEG score recompute
- 2026-10-23 02:30 UTCEG score recompute
- 2026-10-22 16:32 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-22 02:53 UTCEG score recompute
- 2026-10-21 16:31 UTCEPSS rescoreEPSS 65% · 99th percentile
Show 73 moreShow fewer
- 2026-10-21 03:15 UTCEG score recompute
- 2026-10-20 16:31 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-20 03:36 UTCEG score recompute
- 2026-10-19 16:30 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-19 03:57 UTCEG score recompute
- 2026-10-18 04:19 UTCEG score recompute
- 2026-10-17 16:32 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-17 04:33 UTCEG score recompute
- 2026-10-16 16:38 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-16 04:54 UTCEG score recompute
- 2026-10-15 05:16 UTCEG score recompute
- 2026-10-14 16:31 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-14 05:36 UTCEG score recompute
- 2026-10-13 16:32 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-12 17:12 UTCEG score recompute
- 2026-10-12 16:32 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-11 20:44 UTCEG score recompute
- 2026-10-11 18:54 UTCEG score recompute
- 2026-10-11 15:13 UTCEG score recompute
- 2026-10-11 13:47 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-11 11:26 UTCEG score recompute
- 2026-10-10 20:20 UTCEG score recompute
- 2026-10-10 19:59 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-08 19:20 UTCEG score recompute
- 2026-10-08 17:09 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-08 00:30 UTCEG score recompute
- 2026-10-07 23:46 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-06 18:19 UTCEG score recompute
- 2026-10-06 15:16 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-03 14:51 UTCEG score recompute
- 2026-10-03 14:24 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-10-02 20:03 UTCEG score recompute
- 2026-10-01 21:28 UTCEG score recompute
- 2026-10-01 19:49 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-09-30 15:23 UTCEG score recompute
- 2026-09-30 15:02 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-09-29 16:45 UTCEG score recompute
- 2026-09-29 15:19 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-09-28 21:55 UTCEG score recompute
- 2026-09-28 14:22 UTCEG score recompute
- 2026-09-28 13:50 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-09-27 21:51 UTCCISA KEV update
- 2026-09-27 15:46 UTCEG score recompute
- 2026-09-26 17:10 UTCEG score recompute
- 2026-09-26 15:58 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-09-26 02:00 UTCEG score recompute
- 2026-09-26 00:24 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-09-25 19:35 UTCCISA KEV update
- 2026-09-25 14:55 UTCCISA KEV update
- 2026-09-24 19:31 UTCCISA KEV update
- 2026-09-24 16:03 UTCEG score recompute
- 2026-09-24 14:02 UTCEPSS rescoreEPSS 65% · 99th percentile
- 2026-09-23 17:29 UTCEG score recompute
- 2026-09-23 13:47 UTCEPSS rescoreEPSS 58% · 99th percentile
- 2026-09-22 19:36 UTCCISA KEV update
- 2026-09-22 15:10 UTCEG score recompute
- 2026-09-22 00:07 UTCEG score recompute
- 2026-09-21 19:09 UTCCISA KEV update
- 2026-09-18 20:45 UTCEG score recompute
- 2026-09-18 19:27 UTCEPSS rescoreEPSS 58% · 99th percentile
- 2026-09-18 19:20 UTCCISA KEV update
- 2026-09-18 14:15 UTCCISA KEV update
- 2026-09-17 22:09 UTCEG score recompute
- 2026-09-16 16:03 UTCEG score recompute
- 2026-09-16 14:10 UTCCISA KEV update
- 2026-09-16 14:07 UTCEPSS rescoreEPSS 58% · 99th percentile
- 2026-09-16 08:31 UTCEG score recompute
- 2026-09-16 05:13 UTCEPSS rescoreEPSS 58% · 99th percentile
- 2026-09-15 06:07 UTCEG score recompute
- 2026-09-14 19:24 UTCCISA KEV update
- 2026-09-12 17:54 UTCEG score recompute
- 2026-09-12 15:00 UTCEPSS rescoreEPSS 58% · 99th percentile
- 2026-09-11 18:49 UTCCISA KEV update
Publicly available exploits
(2 references)Public exploit code is referenced for this CVE (1 GitHub PoC), as is 1 Nuclei detection template. A detection template checks whether a system is affected; it is not necessarily exploit code. Defenders should treat patch urgency accordingly.
- Nucleihttp/cves/2025/CVE-2025-31125.yamlPublished Apr 9, 2025
Vite Development Server - Path Traversal
Open source ↗ - GitHub PoCsunhuiHi666/CVE-2025-31125Published Apr 1, 2025
Vite 任意文件读取漏洞POC
Open source ↗
Related CVEs(same product + same CWE)
Same product
10 shownnpm:vite
Same CWE
10 shownCWE-200 · CWE-284
Frequently asked(6)
What is CVE-2025-31125?
When was the CVE record for CVE-2025-31125 published?
Is CVE-2025-31125 actively exploited?
What is the CVSS score of CVE-2025-31125?
Which products are affected by CVE-2025-31125?
How do I remediate CVE-2025-31125?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-31125
Is Your Infrastructure Affected by CVE-2025-31125?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.