Bug 2357034 (CVE-2025-30218) - CVE-2025-30218 next.js: Next.js may leak x-middleware-subrequest-id to external hosts
Summary: CVE-2025-30218 next.js: Next.js may leak x-middleware-subrequest-id to extern...
Keywords:
Status: NEW
Alias: CVE-2025-30218
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2357107 2357109 2357101 2357102 2357103 2357104 2357105 2357106 2357108
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-02 22:01 UTC by OSIDB Bzimport
Modified: 2025-04-03 13:59 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-02 22:01:21 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.