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
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. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 5.3
- EG Score
- 9.0(high)
- EG Risk
- 81(Attend)EG Risk 81/100SSVC: Attend
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity90% × 45%Exploitation100% × 40%Automatability0% × 15%Action: Remediate soon — notable exploitation risk. - EPSS PROB
- 58%
- EPSS %ILE
- 99%
- KEV
- ⚠ Exploited
Published
March 31, 2025
Last Modified
January 23, 2026
Advisory Details (3)
Auto-updated Jun 13, 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.0.0 (contains commit 59673137c45a)
https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| vite | — | 4.5.11 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 14× in last 7d / 62× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. 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. Most recent first.
Showing the most recent 100 of 200 total refreshes for this CVE.
- 2026-09-18 20:45 UTCEG score recompute
- 2026-09-18 19:27 UTCEPSS rescore
- 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 rescore
- 2026-09-16 08:31 UTCEG score recompute
- 2026-09-16 05:13 UTCEPSS rescore
- 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 rescore
- 2026-09-11 18:49 UTCCISA KEV update
- 2026-09-11 15:34 UTCEG score recompute
- 2026-09-11 14:52 UTCEPSS rescore
- 2026-09-11 11:48 UTCEG score recompute
- 2026-09-11 09:35 UTCEPSS rescore
- 2026-09-10 19:28 UTCCISA KEV update
- 2026-09-10 13:12 UTCEG score recompute
- 2026-09-10 09:33 UTCEPSS rescore
- 2026-09-09 19:08 UTCCISA KEV update
- 2026-09-08 23:33 UTCEG score recompute
- 2026-09-08 21:59 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-09-08 18:54 UTCCISA KEV update
- 2026-09-07 17:19 UTCEG score recompute
- 2026-09-07 16:00 UTCEPSS rescore
- 2026-09-06 14:51 UTCEG score recompute
- 2026-09-06 13:46 UTCEPSS rescore
- 2026-09-06 13:46 UTCEPSS rescore
- 2026-09-05 16:17 UTCEG score recompute
- 2026-09-04 17:38 UTCCISA KEV update
- 2026-09-04 17:38 UTCEG score recompute
- 2026-09-02 17:33 UTCCISA KEV update
- 2026-09-02 16:26 UTCEG score recompute
- 2026-09-02 14:11 UTCEPSS rescore
- 2026-08-31 14:19 UTCCISA KEV update
- 2026-08-30 20:27 UTCEG score recompute
- 2026-08-30 19:16 UTCEPSS rescore
- 2026-08-30 19:16 UTCEPSS rescore
- 2026-08-28 23:12 UTCEG score recompute
- 2026-08-28 21:40 UTCEPSS rescore
- 2026-08-27 17:22 UTCCISA KEV update
- 2026-08-27 16:59 UTCEG score recompute
- 2026-08-27 14:24 UTCEPSS rescore
- 2026-08-26 18:24 UTCEG score recompute
- 2026-08-26 17:41 UTCCISA KEV update
- 2026-08-26 14:45 UTCEPSS rescore
- 2026-08-25 16:02 UTCEG score recompute
- 2026-08-25 13:48 UTCEPSS rescore
- 2026-08-24 18:52 UTCCISA KEV update
- 2026-08-24 17:25 UTCEG score recompute
- 2026-08-24 14:16 UTCEPSS rescore
- 2026-08-24 09:55 UTCEG score recompute
- 2026-08-23 03:44 UTCEG score recompute
- 2026-08-23 00:18 UTCEPSS rescore
- 2026-08-22 01:23 UTCEG score recompute
- 2026-08-21 23:48 UTCEPSS rescore
- 2026-08-21 16:49 UTCCISA KEV update
- 2026-08-20 23:01 UTCEG score recompute
- 2026-08-20 17:06 UTCCISA KEV update
- 2026-08-19 20:40 UTCEG score recompute
- 2026-08-19 17:33 UTCCISA KEV update
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-18 16:58 UTCCISA KEV update
- 2026-08-18 14:32 UTCEG score recompute
- 2026-08-18 13:47 UTCEPSS rescore
- 2026-08-17 15:53 UTCEG score recompute
- 2026-08-17 13:56 UTCCISA KEV update
- 2026-08-17 13:46 UTCEPSS rescore
- 2026-08-16 02:15 UTCEG score recompute
- 2026-08-16 02:13 UTCEPSS rescore
- 2026-08-15 03:40 UTCEG score recompute
- 2026-08-15 01:29 UTCEPSS rescore
- 2026-08-14 01:21 UTCEG score recompute
- 2026-08-13 21:59 UTCEPSS rescore
- 2026-08-12 15:30 UTCEG score recompute
- 2026-08-12 13:50 UTCEPSS rescore
- 2026-08-11 19:32 UTCCISA KEV update
- 2026-08-11 16:57 UTCEG score recompute
- 2026-08-08 17:29 UTCEG score recompute
- 2026-08-07 18:55 UTCEG score recompute
- 2026-08-07 17:09 UTCCISA KEV update
- 2026-08-07 16:26 UTCEPSS rescore
- 2026-08-06 16:34 UTCEG score recompute
- 2026-08-06 13:46 UTCEPSS rescore
- 2026-08-05 17:25 UTCCISA KEV update
- 2026-08-04 17:02 UTCCISA KEV update
- 2026-08-03 19:22 UTCCISA KEV update
- 2026-08-03 13:20 UTCEG score recompute
- 2026-08-03 10:35 UTCEPSS rescore
- 2026-07-30 19:00 UTCEG score recompute
- 2026-07-30 16:27 UTCEPSS rescore
- 2026-07-30 11:27 UTCEG score recompute
- 2026-07-30 03:55 UTCEG score recompute
- 2026-07-30 01:29 UTCEPSS rescore
- 2026-07-29 19:27 UTCCISA KEV update
- 2026-07-28 17:57 UTCEG score recompute
- 2026-07-28 15:35 UTCEPSS rescore
Publicly available exploits
(2 references)Working exploit code is in the public domain (1 GitHub PoC). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCsunhuiHi666/CVE-2025-31125First seen Apr 1, 2025
Vite 任意文件读取漏洞POC
Open source ↗ - Nucleihttp/cves/2025/CVE-2025-31125.yamlFirst seen Jan 1, 2025
Vite Development Server - Path Traversal
Open source ↗
Related CVEs(same CWE)
Frequently asked(6)
What is CVE-2025-31125?
When was CVE-2025-31125 disclosed?
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.