Medium severity · published Apr 2, 2025
CVE-2025-30218
Next.js is a React framework for building full-stack web applications
5.9
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 37% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NE
Next.js · Vercel
12.3.5; 13.5.9; 14.2.25; 15.2.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-30218
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-30218
Vendor Advisory
https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf
Vendor Advisory
https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O
More from Next.js
10.0
CVE-2025-55182
Meta React Server Components Remote Code Execution Vulnerability
9.1
CVE-2025-29927
Next.js is a React framework for building full-stack web applications
9.0
CVE-2026-75604
Next.js: Unauthenticated Remote Code Execution on windows-hosted servers
8.6
CVE-2026-44578
Next.js: Server-side request forgery in applications using WebSocket upgrades
8.2
CVE-2026-94482
Next.js: Denial of Service in App Router using Server Actions
