CVE-2025-30218Vercel Next.js
Low 1.7 No auth needed
Follow: this CVE · Vercel · Vercel Next.js We alert you by email or Slack (account required).
- Priority
- 25
- CVSS 4.0
- 1.7
- EPSS
- —
- Auth required
- No
- Published
- Apr 2, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS: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
What happens
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.
What to do
- Apply the vendor's security update for Next.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | next |
≥ 12.3.5 < 12.3.6 |
12.3.6 |
npm install next@12.3.6 |
| npm | next |
≥ 13.5.9 < 13.5.10 |
13.5.10 |
npm install next@13.5.10 |
| npm | next |
≥ 14.2.25 < 14.2.26 |
14.2.26 |
npm install next@14.2.26 |
| npm | next |
≥ 15.2.3 < 15.2.4 |
15.2.4 |
npm install next@15.2.4 |
Per OSV / GitHub Advisories (GHSA-223j-4rm8-mrmf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | 12.3.5 |
| vercel | next.js | 13.5.9 |
| vercel | next.js | 14.2.25 |
| vercel | next.js | 15.2.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory
- vercel.com Vendor Advisory