Security mailing lists by PureSourceCode

CVE-2025-30218

LOW 1.7CVSS 4.0

Next.js may leak x-middleware-subrequest-id to external hosts

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.

Published
2 Apr 2025
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-200
Also known as
GHSA-223j-4rm8-mrmf
Sources
NVDJSONOSV GHSA-223j-4rm8-mrmfJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 LOW 1.7 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
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD vercel next.js
cpe:2.3:a:vercel:next.js:12.3.5:*:*:*:*:node.js:*:*
= 12.3.5
NVD vercel next.js
cpe:2.3:a:vercel:next.js:13.5.9:*:*:*:*:node.js:*:*
= 13.5.9
NVD vercel next.js
cpe:2.3:a:vercel:next.js:14.2.25:*:*:*:*:node.js:*:*
= 14.2.25
NVD vercel next.js
cpe:2.3:a:vercel:next.js:15.2.3:*:*:*:*:node.js:*:*
= 15.2.3
OSV npm next >= 12.3.5, < 12.3.6 12.3.6
OSV npm next >= 13.5.9, < 13.5.10 13.5.10
OSV npm next >= 14.2.25, < 14.2.26 14.2.26
OSV npm next >= 15.2.3, < 15.2.4 15.2.4

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 2 Apr 2025)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.