Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-30218

LOW 1.7EPSS 49%

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

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

Mitigation

  • Upgrade next to one of 12.3.6, 13.5.10, 14.2.26, 15.2.4 (or later in the same release line).

Who should check

  • Projects that depend on npm package next (>= 12.3.5, < 12.3.6)
  • Anyone running vercel next.js = 12.3.5; = 13.5.9; = 14.2.25; = 15.2.3

Vulnerability facts

Affected
next >= 12.3.5, < 12.3.6
Fixed in
12.3.6, 13.5.10, 14.2.26, 15.2.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
1.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:UOpen in CVSS calculator
Show all 12 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
  • Exploit maturity: Unreported
EPSS
0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
CWE
CWE-200
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm next>= 12.3.5, < 12.3.612.3.6, 13.5.10, 14.2.26, 15.2.4osv
vercel next.js= 12.3.5; = 13.5.9; = 14.2.25; = 15.2.3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-30218. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-30218.md
Affected: next >= 12.3.5, < 12.3.6
Fixed in: 12.3.6, 13.5.10, 14.2.26, 15.2.4

Steps:
1. Search this machine and project for next (npm), vercel next.js: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-30218 being exploited?

There is no confirmed exploitation: CVE-2025-30218 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-30218?

Low: CVSS 1.7 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-30218?

next >= 12.3.5, < 12.3.6.

Is there a fix for CVE-2025-30218?

Yes. Fixed in 12.3.6, 13.5.10, 14.2.26, 15.2.4. Upgrade next to one of 12.3.6, 13.5.10, 14.2.26, 15.2.4 (or later in the same release line).

How do I check if I'm affected by CVE-2025-30218?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors