Feed
5.9MEDIUM

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

A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.7% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.7%
percentile 49%
Priority
24/100 low
how it is computed
Fix
Named by a source
CVE published 2 Apr 2025

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.7% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • next (npm) pkg:npm/next

    • Affected>= 12.3.5, < 12.3.6Fixed in12.3.6OSV (GHSA-223j-4rm8-mrmf)
    • Affected>= 13.5.9, < 13.5.10Fixed in13.5.10OSV (GHSA-223j-4rm8-mrmf)
    • Affected>= 14.2.25, < 14.2.26Fixed in14.2.26OSV (GHSA-223j-4rm8-mrmf)
    • Affected>= 15.2.3, < 15.2.4Fixed in15.2.4OSV (GHSA-223j-4rm8-mrmf)
  • vercel next.js product:vercel/nextjs

    • Affected12.3.5Fixed innot namedas published by CNA (CVE List)
    • Affected13.5.9Fixed innot namedas published by CNA (CVE List)
    • Affected14.2.25Fixed innot namedas published by CNA (CVE List)
    • Affected15.2.3Fixed innot namedas published by CNA (CVE List)
    • Affected12.3.5Fixed innot namedas published by CPE data (via the NVD API)
    • Affected13.5.9Fixed innot namedas published by CPE data (via the NVD API)
    • Affected14.2.25Fixed innot namedas published by CPE data (via the NVD API)
    • Affected15.2.3Fixed innot namedas published by CPE data (via the NVD API)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
5.9 MEDIUM (version 3.1)
Score from
NVD
Attack vector
network
Attack complexity
high
Privileges required
none
User interaction
none
Weakness
CWE-200
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
no
Assigned by
[email protected]

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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.

Update history

  • 2 Apr 2025Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 27 min ago · osv 26 min ago · nvd 87 min ago · epss 26 min ago · JSON · ask via MCP: explain_vulnerability

Also known as GHSA-223j-4rm8-mrmf