CVE-2025-29927 Authorization Bypass in Next.js Middleware
CriticalCVSS 9.1
EPSS 75.3%
Public exploit
Scanner template
- Published
- Updated
- Exploit status
- Public exploit available
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm next(npm) | >= 12.0.0, < 12.3.5; >= 13.0.0, < 13.5.9; >= 14.0.0, < 14.2.25; >= 15.0.0, < 15.2.3 | 12.3.5, 13.5.9, 14.2.25, 15.2.3 | Fixed |
| 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 +4 more | 12.3.5, 13.5.9, 14.2.25, 15.2.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm next(npm) | >= 13.0.0, < 13.5.9 | 13.5.9 |
| npm next(npm) | >= 14.0.0, < 14.2.25 | 14.2.25 |
| npm next(npm) | >= 15.0.0, < 15.2.3 | 15.2.3 |
| npm next(npm) | >= 12.0.0, < 12.3.5 | 12.3.5 |
| vercel next.js | = >= 11.1.4, < 12.3.5 | No fix listed |
| vercel next.js | = >= 14.0.0, < 14.2.25 | No fix listed |
| vercel next.js | = >= 15.0.0, < 15.2.3 | No fix listed |
| vercel next.js | = >= 13.0.0, < 13.5.9 | No fix listed |
| vercel next.js | >= 11.1.4, < 12.3.5 | 12.3.5 |
| vercel next.js | >= 13.0.0, < 13.5.9 | 13.5.9 |
| vercel next.js | >= 14.0.0, < 14.2.25 | 14.2.25 |
| vercel next.js | >= 15.0.0, < 15.2.3 | 15.2.3 |
References
- https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw vendor-advisory
- https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2 patch
- https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/vercel/next.js/releases/tag/v12.3.5 release-notes
- https://github.com/vercel/next.js/releases/tag/v13.5.9 release-notes
- vercel.com
- www.openwall.com mailing-list third-party-advisory
- www.openwall.com mailing-list
- security.netapp.com third-party-advisory
- github.com
- github.com product