VDB
Sign up
LOW1.7

GHSA-223j-4rm8-mrmf

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

Quick fix

GHSA-223j-4rm8-mrmf — next: upgrade to the fixed version with the command below.

npm install next@12.3.6

Details

## Summary In the process of remediating [CVE-2025-29927](https://github.com/advisories/GHSA-f82v-jwr5-mffw), 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](https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O).

## Credit

Thank you to Jinseo Kim [kjsman](https://hackerone.com/kjsman?type=user) and [RyotaK](https://hackerone.com/ryotak?type=user) (GMO Flatt Security Inc.) with [takumi-san.ai](https://takumi-san.ai) for the responsible disclosure. These researchers were awarded as part of our bug bounty program.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/next
Introduced in: 12.3.5Fixed in: 12.3.6
Fixnpm install next@12.3.6
npm/next
Introduced in: 13.5.9Fixed in: 13.5.10
Fixnpm install next@13.5.10
npm/next
Introduced in: 14.2.25Fixed in: 14.2.26
Fixnpm install next@14.2.26
npm/next
Introduced in: 15.2.3Fixed in: 15.2.4
Fixnpm install next@15.2.4

References