Authorization Bypass in Next.js Middleware (v1.11.4 & <12.3.5/13.5.9/14.2.25/15.2.3)
CVE-2025-29927 Published on March 21, 2025
Authorization Bypass in Next.js Middleware
Next.js is a React framework for building full-stack web applications. Starting in version 1.11.4 and prior to versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3, it is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware. If patching to a safe version is infeasible, it is recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application. This vulnerability is fixed in 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
Vulnerability Analysis
CVE-2025-29927 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and no impact on availability.
Weakness Type
What is an AuthZ Vulnerability?
The software does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
CVE-2025-29927 has been classified to as an AuthZ vulnerability or weakness.
Products Associated with CVE-2025-29927
Want to know whenever a new CVE is published for Vercel Next Js? stack.watch will email you.
Affected Versions
vercel next.js:- Version >= 11.1.4, < 12.3.5 is affected.
- Version >= 14.0.0, < 14.2.25 is affected.
- Version >= 15.0.0, < 15.2.3 is affected.
- Version >= 13.0.0, < 13.5.9 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2025-29927
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| npm | next | >= 11.1.4, <= 13.5.6 | |
| npm | next | >= 14.0, < 14.2.25 | 14.2.25 |
| npm | next | >= 15.0, < 15.2.3 | 15.2.3 |
| npm | next | = 12.3.5 | 12.3.6 |
| npm | next | = 13.5.9 | 13.5.10 |
| npm | next | = 14.2.25 | 14.2.26 |
| npm | next | = 15.2.3 | 15.2.4 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.