CVE-2024-51479
JavaScript vulnerability analysis and mitigation

Overview

Next.js, a popular React framework for building full-stack web applications, was found to contain a high-severity authorization bypass vulnerability (CVE-2024-51479) affecting versions 9.5.5 through 14.2.14. The vulnerability was discovered by tyage from GMO Cybersecurity by IERAE and received a CVSS score of 7.5. The issue allows unauthorized access to pages directly under the application's root directory when authorization is performed in middleware based on pathname (Security Online, GitHub Advisory).

Technical details

The vulnerability specifically affects pages located directly under the application's root directory when authorization is performed in middleware based on pathname. For example, while 'example.com/' and 'example.com/foo/bar' are not affected, 'example.com/foo' is vulnerable to the authorization bypass. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating that it can be exploited remotely with no privileges required (GitHub Advisory).

Impact

The impact of this vulnerability is significant due to Next.js's widespread adoption, with over 7.9 million weekly downloads on npm. The flaw could potentially expose sensitive application data to unauthorized users by bypassing authorization checks on affected pages. This poses a particular risk for applications that rely on middleware-based authorization for securing sensitive routes (Security Online).

Mitigation and workarounds

The vulnerability has been patched in Next.js version 14.2.15 and later. Users are strongly urged to update their Next.js applications to the latest version immediately. For applications hosted on Vercel, the vulnerability has been automatically mitigated regardless of the Next.js version being used. There are no official workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management