CVE-2024-51479: vercel next.js Improper Authorization
Vulnerability summary
CVE-2024-51479 is a high (CVSS 7.5) Improper Authorization vulnerability in vercel next.js. EPSS estimates a 4.00% chance of exploitation in the next 30 days, higher than 90.4% of scored vulnerabilities.
Timeline
- 17-12-2024PublishedVulnerability first disclosed.
- 17-12-2024Last modifiedVulnerability information updated.
Description
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 metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
4.00%
Chance of exploitation in the next 30 days
Percentile
90%
Versus all other CVEs
30-day change
+0.03 pp
From 3.96% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-285Improper AuthorizationThe product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
- CWE-863Incorrect AuthorizationThe product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
Affected systems
Npm1 product
- next≥ 9.5.5, < 14.2.15
Vercel1 product
- next.js≥ 9.5.5, < 14.2.15
2 vendors · 2 products
References
5 links- github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5fX Refsource CONFIRMWEBVendor Advisory
- github.com/vercel/next.jsPACKAGE