CVE-2025-30218
Last modified
CVE-2025-30218 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
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:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Vercel | Next.Js | 12.3.5 |
| Vercel | Next.Js | 13.5.9 |
| Vercel | Next.Js | 14.2.25 |
| Vercel | Next.Js | 15.2.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-30218?
How severe is CVE-2025-30218?
How do I fix CVE-2025-30218?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-30212Frappe is a full-stack web application framework. An SQL Inj…7.5
- CVE-2025-30213Frappe is a full-stack web application framework. Prior to v…8.8
- CVE-2025-30214Frappe is a full-stack web application framework. Prior to v…7.5
- CVE-2025-30215NATS-Server is a High-Performance server for NATS.io, the cl…9.6
- CVE-2025-30216CryptoLib provides a software-only solution using the CCSDS …9.1
- CVE-2025-30217Frappe is a full-stack web application framework. Prior to v…7.5
- CVE-2025-30219RabbitMQ is a messaging and streaming broker. Versions prior…6.1
- CVE-2025-3022Os command injection vulnerability in e-solutions e-manageme…9.3
- CVE-2025-30220GeoServer is an open source server that allows users to shar…9.1
- CVE-2025-30221Pitchfork is a preforking HTTP server for Rack applications.…4.3
- CVE-2025-30222Shescape is a simple shell escape library for JavaScript. Ve…2.1
- CVE-2025-30223Beego is an open-source web framework for the Go programming…9.6
Are you affected by CVE-2025-30218?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
