Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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