CVE-2025-29927 Details
Description
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.
A vulnerability exists in Next.js, a React framework for full-stack web applications, allowing authorization checks to be bypassed in middleware. This issue affects Next.js versions 1.11.4 prior to 12.3.5, as well as versions 13.5.9, 14.2.25, and 15.2.3. The vulnerability arises because the 'x-middleware-subrequest' header, used to prevent recursive requests, can be exploited to skip critical checks like authorization cookie validation, potentially leading to unauthorized access.
Users can update to Next.js versions 12.3.5, 13.5.9, 14.2.25, or 15.2.3. For those unable to update, it is recommended to block requests containing the 'x-middleware-subrequest' header from reaching the application.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.netapp.com/advisory/ntap-20250328-0002/ | CVE | Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2025/03/23/3 | CVE | Mailing ListThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2025/03/23/4 | CVE | Mailing List |
| https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2 | [email protected] | Patch |
| https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48 | [email protected] | Patch |
| https://github.com/vercel/next.js/releases/tag/v12.3.5 | [email protected] | Release Notes |
| https://github.com/vercel/next.js/releases/tag/v13.5.9 | [email protected] | Release Notes |
| https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-863 | Incorrect Authorization | [email protected] |
| CWE-285 | Improper Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | >= 11.1.4, < 12.3.5 >= 13.0.0, < 13.5.9 >= 14.0.0, < 14.2.25 >= 15.0.0, < 15.2.3 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| Apr 8, 2025 | CVE Modified | [email protected] |
| Mar 28, 2025 | CVE Modified | CVE |
| Mar 23, 2025 | CVE Modified | CVE |
| Mar 21, 2025 | New CVE Received | [email protected] |