CVE-2024-51479
highpriority · track · 1OT risk · elevatedEPSS 0.040 · 90 %ileEURUUSEPSS · scored 2026-10-27
Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affected] `https://example.com/` * [Affected] `https://example.com/foo` * [Not affected] `https://example.com/foo/bar`. This issue is patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. There are no official workarounds for this vulnerability.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.9–7.5
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-7gfc-8cq8-jh5fNext.js authorization bypass vulnerability2024-12-17ghsa · osvUS
### Impact If a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed. ### Patches This issue was patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. ### Workarounds There are no official workarounds for this vulnerability. #### Credits We'd like to thank [tyage](http://github.com/tyage) (GMO CyberSecurity by IERAE) for responsible disclosure of this issue.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2024-51479cnnvd
- https://github.com/vercel/next.js/releases/tag/v14.2.15cnnvd
- https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5fcnnvd
- https://github.com/vercel/next.js/releases/tag/v14.2.15enisa_euvd
- https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5fenisa_euvd
- https://github.com/vercel/next.js/releases/tag/v14.2.15Release Notesnvd
- https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5fVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan