CVE-2025-30218: vercel next.js
Vulnerability summary
CVE-2025-30218 is a medium (CVSS 5.9) vulnerability in vercel next.js. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 35.2% of scored vulnerabilities.
Timeline
- 02-04-2025PublishedVulnerability first disclosed.
- 13-10-2025Last modifiedVulnerability information updated.
Description
Next.js is a React framework for building full-stack web applications. To mitigate CVE-2025-29927, Next.js validated the x-middleware-subrequest-id which persisted across multiple incoming requests. However, this subrequest ID is sent to all requests, even if the destination is not the same host as the Next.js application. Initiating a fetch request to a third-party within Middleware will send the x-middleware-subrequest-id to that third party. This vulnerability is fixed in 12.3.6, 13.5.10, 14.2.26, and 15.2.4.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:UDiffers
- NVDNIST1.7LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.42%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
+0.01 pp
From 0.42% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Npm1 product
- next≥ 12.3.5, < 12.3.6 | ≥ 13.5.9, < 13.5.10 | ≥ 14.2.25, < 14.2.26 | ≥ 15.2.3, < 15.2.4
Vercel1 product
- next.js= 12.3.5 | = 13.5.9 | = 14.2.25 | = 15.2.3 | 12.3.5 | 13.5.9 | 14.2.25 | 15.2.3
2 vendors · 2 products
References
4 links- github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmfX Refsource CONFIRMWEBVendor Advisory
- github.com/vercel/next.jsPACKAGE