GitHub Advisory Database
GHSA-223j-4rm8-mrmf
Next.js may leak x-middleware-subrequest-id to external hosts
Details
Summary
In the process of remediating CVE-2025-29927, we looked at other possible exploits of Middleware. We independently verified this low severity vulnerability in parallel with two reports from independent researchers.
Learn more here.
Credit
Thank you to Jinseo Kim kjsman and RyotaK (GMO Flatt Security Inc.) with takumi-san.ai for the responsible disclosure. These researchers were awarded as part of our bug bounty program.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | next | From 12.3.5 before 12.3.6 (fixed in 12.3.6) |
| npm | next | From 13.5.9 before 13.5.10 (fixed in 13.5.10) |
| npm | next | From 14.2.25 before 14.2.26 (fixed in 14.2.26) |
| npm | next | From 15.2.3 before 15.2.4 (fixed in 15.2.4) |