CVE-2024-51479
HIGH7.5EPSS 78.5%Next.js authorization bypass vulnerability
Published: 12/17/2024Modified: 9/10/2025
Also known as:GHSA-7gfc-8cq8-jh5f
Description
### 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.
Affected packages (1)
- npm/next>= 9.5.5, < 14.2.15
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-51479
- PATCHhttps://github.com/vercel/next.js
- WEBhttps://github.com/vercel/next.js/commit/1c8234eb20bc8afd396b89999a00f06b61d72d7b
- WEBhttps://github.com/vercel/next.js/releases/tag/v14.2.15
- WEBhttps://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f