Skip to main content
← All vulnerabilities
CVE-2025-30218GHSA-223J-4RM8-MRMF

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 12.3.6, 13.5.10, 14.2.26, 15.2.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • vercel next.js

    12.3.5, 13.5.9, 14.2.25, 15.2.3

  • nextnpm

    From 12.3.5 · fixed in 12.3.6

  • nextnpm

    From 13.5.9 · fixed in 13.5.10

  • nextnpm

    From 14.2.25 · fixed in 14.2.26

  • nextnpm

    From 15.2.3 · fixed in 15.2.4

References 2

GitHub · vercel/next.js

vercel.com