CVE-2024-51479
HIGH 7.5CVSS 3.1Next.js authorization bypass vulnerability
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.
- Published
- 17 Dec 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-285CWE-863
- Also known as
- GHSA-7gfc-8cq8-jh5f
- Sources
- NVDJSONOSV GHSA-7gfc-8cq8-jh5fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vercel | next.jscpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* |
>= 9.5.5, < 14.2.15 | 14.2.15 |
| OSV | npm | next | >= 9.5.5, < 14.2.15 | 14.2.15 |
References
- https://github.com/vercel/next.js/releases/tag/v14.2.15 · Release Notes, WEB
- https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-51479 · ADVISORY
- https://github.com/vercel/next.js/commit/1c8234eb20bc8afd396b89999a00f06b61d72d7b · WEB
- https://github.com/vercel/next.js · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 17 Dec 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 17 Dec 2024)