CVE-2025-31125

MEDIUMNVD 5.39.0
EchelonGraph scoreHIGH confidence

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.

Triggered by: CISA KEV (actively exploited)
Sources: cisa_kev, epss, nvd
Trending — 3 sources updated this weekExploited in the wild
5.3
EchelonGraph verdictPatch nowTreat as an emergency — this is being exploited.
  • Actively exploited in the wild (CISA-KEV)
CISA-KEV: ExploitedEPSS: 59%CVSS: 5.3Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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.

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 computed
Severity90% × 45%
Exploitation100% × 40%
Automatability0% × 15%
Action: Remediate soon — notable exploitation risk.
EPSS
99.0%
KEV
⚠ Exploited

Published

March 31, 2025

Last Modified

January 23, 2026

Advisory Details (3)

Auto-updated Jun 13, 2026
⚠️ Active exploitation confirmed. Patch available. Sources: github_commit, github, cisa.
cisa Patch Available🔴 Active Exploitation

Known 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
github Patch Available🟡 PoC Available

`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-chr8
github_commit Patch Available

commit 59673137c45a (vitejs/vite)

Patch available: vitejs/vite v8.0.0 (contains commit 59673137c45a)

https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949

Affected Packages

(1 across 1 ecosystem)
npm(1)
PackageVulnerable rangeFixed inDependents
vite4.5.11

Weakness Classification(2)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 20× in last 7d / 56× 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.

  1. 2026-07-23 02:53 UTCEG score recompute
  2. 2026-07-22 22:42 UTCEG score recompute
  3. 2026-07-22 19:40 UTCCISA KEV update
  4. 2026-07-22 15:09 UTCEG score recompute
  5. 2026-07-22 14:07 UTCEPSS rescore
  6. 2026-07-22 14:07 UTCEPSS rescore
  7. 2026-07-21 16:31 UTCEG score recompute
  8. 2026-07-21 15:24 UTCEPSS rescore
  9. 2026-07-21 15:24 UTCEPSS rescore
  10. 2026-07-21 14:37 UTCCISA KEV update
  11. 2026-07-20 17:54 UTCEG score recompute
  12. 2026-07-20 17:07 UTCEPSS rescore
  13. 2026-07-19 15:34 UTCEG score recompute
  14. 2026-07-19 14:30 UTCEPSS rescore
  15. 2026-07-19 14:30 UTCEPSS rescore
  16. 2026-07-18 13:11 UTCEG score recompute
  17. 2026-07-18 10:04 UTCEPSS rescore
  18. 2026-07-18 10:04 UTCEPSS rescore
  19. 2026-07-16 17:04 UTCCISA KEV update
  20. 2026-07-16 17:02 UTCEPSS rescore
  21. 2026-07-15 16:57 UTCEPSS rescore
  22. 2026-07-15 16:57 UTCEPSS rescore
  23. 2026-07-15 16:49 UTCCISA KEV update
  24. 2026-07-15 15:04 UTCCISA KEV update
  25. 2026-07-15 01:59 UTCEPSS rescore
Show 67 more
  1. 2026-07-15 01:59 UTCEPSS rescore
  2. 2026-07-14 18:05 UTCCISA KEV update
  3. 2026-07-13 17:07 UTCCISA KEV update
  4. 2026-07-13 06:12 UTCEPSS rescore
  5. 2026-07-13 06:12 UTCEPSS rescore
  6. 2026-07-12 05:46 UTCEPSS rescore
  7. 2026-07-12 05:46 UTCEPSS rescore
  8. 2026-07-11 08:27 UTCEPSS rescore
  9. 2026-07-11 08:27 UTCEPSS rescore
  10. 2026-07-10 17:52 UTCCISA KEV update
  11. 2026-07-09 19:09 UTCEPSS rescore
  12. 2026-07-08 15:14 UTCEPSS rescore
  13. 2026-07-07 19:01 UTCCISA KEV update
  14. 2026-07-07 17:16 UTCCISA KEV update
  15. 2026-07-06 02:22 UTCEPSS rescore
  16. 2026-07-04 06:30 UTCEPSS rescore
  17. 2026-07-02 17:01 UTCEPSS rescore
  18. 2026-07-01 19:16 UTCCISA KEV update
  19. 2026-07-01 15:06 UTCEPSS rescore
  20. 2026-06-29 19:12 UTCCISA KEV update
  21. 2026-06-28 04:55 UTCEPSS rescore
  22. 2026-06-28 04:55 UTCEPSS rescore
  23. 2026-06-27 03:08 UTCEPSS rescore
  24. 2026-06-25 19:15 UTCCISA KEV update
  25. 2026-06-25 13:49 UTCEPSS rescore
  26. 2026-06-25 13:49 UTCEPSS rescore
  27. 2026-06-24 14:04 UTCEPSS rescore
  28. 2026-06-24 14:04 UTCEPSS rescore
  29. 2026-06-23 21:32 UTCEPSS rescore
  30. 2026-06-23 21:32 UTCEPSS rescore
  31. 2026-06-23 17:44 UTCCISA KEV update
  32. 2026-06-21 14:56 UTCEPSS rescore
  33. 2026-06-21 14:56 UTCEPSS rescore
  34. 2026-06-21 01:59 UTCEPSS rescore
  35. 2026-06-21 01:59 UTCEPSS rescore
  36. 2026-06-18 17:52 UTCEPSS rescore
  37. 2026-06-18 17:52 UTCEPSS rescore
  38. 2026-06-18 16:13 UTCCISA KEV update
  39. 2026-06-17 17:52 UTCEPSS rescore
  40. 2026-06-16 19:33 UTCCISA KEV update
  41. 2026-06-16 17:52 UTCEPSS rescore
  42. 2026-06-16 17:52 UTCEPSS rescore
  43. 2026-06-15 19:33 UTCCISA KEV update
  44. 2026-06-15 17:48 UTCEPSS rescore
  45. 2026-06-14 23:17 UTCEPSS rescore
  46. 2026-06-12 23:11 UTCEPSS rescore
  47. 2026-06-12 17:35 UTCCISA KEV update
  48. 2026-06-11 19:10 UTCCISA KEV update
  49. 2026-06-11 13:59 UTCEPSS rescore
  50. 2026-06-10 22:18 UTCEPSS rescore
  51. 2026-06-09 18:42 UTCCISA KEV update
  52. 2026-06-09 17:12 UTCCISA KEV update
  53. 2026-06-08 19:16 UTCCISA KEV update
  54. 2026-06-08 17:26 UTCCISA KEV update
  55. 2026-06-06 13:47 UTCEPSS rescore
  56. 2026-06-06 13:47 UTCEPSS rescore
  57. 2026-06-05 22:46 UTCEPSS rescore
  58. 2026-06-05 22:46 UTCEPSS rescore
  59. 2026-06-05 22:43 UTCCISA KEV update
  60. 2026-06-05 06:10 UTCEPSS rescore
  61. 2026-06-05 06:10 UTCEPSS rescore
  62. 2026-06-03 19:09 UTCCISA KEV update
  63. 2026-06-02 18:32 UTCCISA KEV update
  64. 2026-06-01 20:42 UTCCISA KEV update
  65. 2026-05-29 22:24 UTCEG score recompute
  66. 2026-05-29 22:20 UTCCISA KEV update
  67. 2026-05-29 13:44 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-31125
    First seen Apr 1, 2025

    Vite 任意文件读取漏洞POC

    Open source ↗
  • Nucleihttp/cves/2025/CVE-2025-31125.yaml
    First seen Jan 1, 2025

    Vite Development Server - Path Traversal

    Open source ↗

Frequently asked(6)

What is CVE-2025-31125?
CVE-2025-31125 is a medium vulnerability published on March 31, 2025. 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,…
When was CVE-2025-31125 disclosed?
CVE-2025-31125 was first published in the National Vulnerability Database on March 31, 2025, with the most recent update on January 23, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2025-31125 actively exploited?
Yes. CISA added CVE-2025-31125 to the Known Exploited Vulnerabilities catalog on January 22, 2026, affecting Vite Vitejs. KEV listing indicates confirmed exploitation in the wild; this CVE warrants immediate patching attention.
What is the CVSS score of CVE-2025-31125?
CVE-2025-31125 has a CVSS v3 base score of 5.3 (NVD). EchelonGraph synthesises NVD + CISA KEV + FIRST EPSS + GHSA into a combined EG score of 9.0.
Which products are affected by CVE-2025-31125?
CVE-2025-31125 affects Vite Vitejs. The full affected-products list, including version ranges and fixed versions, is shown in the Affected Packages section of this page.
How do I remediate CVE-2025-31125?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2025-31125, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-31125

Explore →

Is Your Infrastructure Affected by CVE-2025-31125?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.