megachangelog
Security15.x, 12.x-14.x

CVE-2025-30218: Middleware subrequest ID leakage to third parties

A vulnerability in Next.js Middleware could leak the x-middleware-subrequest-id header to third-party services during fetch requests. While exploitation is unlikely, Vercel is removing this recursion prevention logic from Middleware to achieve parity across runtimes and has already mitigated this for Vercel customers.

In the process of remediating , we looked at other possible exploits of Middleware. We independently verified this in parallel with two reports from independent researchers.CVE-2025-29927low severity vulnerability

To mitigate , Next.js validated the which persisted across multiple incoming requests:CVE-2025-29927x-middleware-subrequest-id

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 to that third party.x-middleware-subrequest-id

While the exploitation of this vulnerability is unlikely due to an attacker requiring control of the third-party, we want to be proactive. We were already planning on removing this recursion prevention logic from Middleware—it was not supported in newer updates to Middleware to support the Node.js runtime—this disclosure expedited our efforts to bring parity between runtimes.

Vercel customers are protected with mitigations already implemented within our platform environment. We still encourage teams to update to the latest Next.js patch version or their chosen backport. Other infrastructure providers which host Next.js applications are not impacted by this, as it is specific to Vercel's implementation of recursion protection.

This advisory was published in alignment with our new internal process for disclosure of vulnerabilities within OSS packages, based on . We’ve patched 15.x, and offered backports for versions 12.x through 14.x, making an exception to our newly published . our postmorten of CVE-2025-29927LTS policy

We’ve also worked proactively with new partners to Next.js for early disclosure. If you are an infrastructure provider and want to work with us, please email .partners@nextjs.org

Thank you to Jinseo Kim () and for the responsible disclosure. These researchers were awarded as part of our bug bounty program.kjsmanryotak

Read more

SummaryImpactRemediationCredit
securitymiddlewarenextjscveheaders

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Announcement2026.10.19

Updates to Hobby and Pro Terms of Service

Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.

termsbillingcreditspolicylegal
Announcement

Mercury 3 now available on AI Gateway

Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.

ai-gatewaymodelsinferencellmlaunch
Announcement

MiniMax M3.1 Flash now available on AI Gateway for free

MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.

ai-gatewaymodelscodingagentsapi
See all Vercel changes →