CVE-2025-30218 - CVE House
Back to Database
Status published Low CVE-2025-30218

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

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-30218

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

next.js
Vulnerable Versions:
= 12.3.5, = 13.5.9, = 14.2.25, = 15.2.3

Timeline

Official Publish: April 2nd, 2025
Last Modified: October 13th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

Weaknesses (CWE)