It is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware.
15.2.3
14.2.25
11.1.4
thru 13.5.6
we recommend consulting the below workaround.Note: Next.js deployments hosted on Vercel are automatically protected against this vulnerability.
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.