# CVE-2024-51479: Authorization bypass in Next.js

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.17%, higher than 92% of CVEs (2026-11-30)
- Published: 2024-12-17T15:09:06.000Z
- Modified: 2026-06-17T08:05:46.410Z
- Also known as: GHSA-7gfc-8cq8-jh5f
- Weaknesses: CWE-285, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vercel next.js: >= 9.5.5, < 14.2.15; from 9.5.5 before 14.2.15
- next (npm): from 9.5.5 before 14.2.15

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f> (vendor-advisory, web)
- <https://github.com/vercel/next.js/releases/tag/v14.2.15> (release-notes, 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)

## Sources

- CVE List: [CVE-2024-51479](https://www.cve.org/CVERecord?id=CVE-2024-51479), CVE Terms of Use, modified 2024-12-17
- GitHub Advisory Database: [GHSA-7gfc-8cq8-jh5f](https://github.com/advisories/GHSA-7gfc-8cq8-jh5f), CC-BY-4.0, modified 2025-09-10
- NVD: [CVE-2024-51479](https://nvd.nist.gov/vuln/detail/CVE-2024-51479), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-51479 · Whole record: https://cve.day/CVE-2024-51479.json · Rebuilt by cve.day 2026-11-25T22:58:50.207Z
