The Next.js React framework includes a serious security issue that, in some circumstances, might be used to get around authorization checks.
In an advisory, Next.js stated that it used an internal flag called x-middleware-subrequest to stop recursive queries from starting endless cycles.
Requests might bypass important tests, including authorization cookie validation, before reaching routes because middleware could be skipped.
In versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3, the flaw has been fixed. It is advised that users block external user requests with the x-middleware-subrequest header from accessing the Next.js application read more about Critical Next.js Vulnerability Allows Attackers to Bypass Middleware Authorization Checks.
Get up to date on the latest cybersecurity news and enhance your knowledge of cybersecurity with our thorough coverage of the dangers, breaches, and solutions.
