Advisory

GHSA-223j-4rm8-mrmf

Also known as: CVE-2025-30218

Summary

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-04-02 22:35 UTC
Modified
2025-10-13 15:35 UTC

Affected packages and fixes

next

npm · All systems

Affected

  • introduced 12.3.5, fixed 12.3.6 (semver)

Fixed versions

12.3.6

Fix

next

npm · All systems

Affected

  • introduced 13.5.9, fixed 13.5.10 (semver)

Fixed versions

13.5.10

Fix

next

npm · All systems

Affected

  • introduced 14.2.25, fixed 14.2.26 (semver)

Fixed versions

14.2.26

Fix

next

npm · All systems

Affected

  • introduced 15.2.3, fixed 15.2.4 (semver)

Fixed versions

15.2.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences