next
Affected
- introduced
13.0.0, fixed13.5.9(semver)
Fixed versions
13.5.9
Fix
- Fixed version
13.5.9npm install [email protected]
Advisory
Also known as: CVE-2025-29927
Authorization Bypass in Next.js Middleware
Impact
It is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware.
Patches
15.2.314.2.25_Note: Next.js deployments hosted on Vercel are automatically protected against this vulnerability._
Workaround
If patching to a safe version is infeasible, we recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application.
Credits
Critical Basis: The source's own band: CRITICAL
13.0.0, fixed 13.5.9 (semver)13.5.9
13.5.9npm install [email protected]14.0.0, fixed 14.2.25 (semver)14.2.25
14.2.25npm install [email protected]15.0.0, fixed 15.2.3 (semver)15.2.3
15.2.3npm install [email protected]12.0.0, fixed 12.3.5 (semver)12.3.5
12.3.5npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0