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

> CVE-2024-51479: Authorization bypass in Next.js. CVSS 7.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2024-51479
Last updated: 2026-06-17T08:05:46Z

- Published: 2024-12-17 18:13 UTC · Updated: 2026-06-17 08:05 UTC · Assigner: GitHub\_M
- CVSS: 7.5 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 4.0%, 90th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-285

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

## Affected vendors and products

- vercel: next.js

## Tracked companies

- [Vercel](https://rewindex.com/company/vercel.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-51479)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-51479)
- [https://github.com/vercel/next.js/releases/tag/v14.2.15](https://github.com/vercel/next.js/releases/tag/v14.2.15)
- [https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f](https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-51479 · Markdown: https://rewindex.com/cve/CVE-2024-51479.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-51479 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:10:40.773Z
