VYPR
Medium severity5.9NVD Advisory· Published Apr 2, 2025· Updated Jun 17, 2026

CVE-2025-30218

CVE-2025-30218

Description

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
nextnpm
>= 12.3.5, < 12.3.612.3.6
nextnpm
>= 13.5.9, < 13.5.1013.5.10
nextnpm
>= 14.2.25, < 14.2.2614.2.26
nextnpm
>= 15.2.3, < 15.2.415.2.4

Affected products

6
  • Vercel/Next.js5 versions
    cpe:2.3:a:vercel:next.js:12.3.5:*:*:*:*:node.js:*:*+ 4 more
    • cpe:2.3:a:vercel:next.js:12.3.5:*:*:*:*:node.js:*:*
    • cpe:2.3:a:vercel:next.js:13.5.9:*:*:*:*:node.js:*:*
    • cpe:2.3:a:vercel:next.js:14.2.25:*:*:*:*:node.js:*:*
    • cpe:2.3:a:vercel:next.js:15.2.3:*:*:*:*:node.js:*:*
    • (no CPE)range: = 12.3.5
  • ghsa-coords
    Range: >= 12.3.5, < 12.3.6

Patches

Vulnerability mechanics

References

4

News mentions

0

No linked articles in our index yet.