CVE-2024-51479
Authorization bypass in Next.js
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.5
Authorization bypass in Next.js
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.
- Record
CVE-2024-51479- 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 - Weakness
- CWE-285
- Updated
- 2026-11-02
EUVDEUVD-2024-3534
7.5
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.
- Record
EUVD-2024-3534- 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 - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-7gfc-8cq8-jh5f
7.5
Next.js authorization bypass vulnerability
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 (GMO CyberSecurity by IERAE) for responsible disclosure of this issue.
- Record
GHSA-7gfc-8cq8-jh5f- 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 - Weakness
- CWE-285, CWE-863
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2024-51479- 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 - Weakness
- CWE-285, CWE-863
- Updated
- 2026-11-02
OSV
7.5
Authorization bypass in Next.js
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.
- Record
CVE-2024-51479- 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 - Weakness
- CWE-285
- Updated
- 2026-11-02
OSVGHSA-7gfc-8cq8-jh5f
7.5
Next.js authorization bypass vulnerability
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 (GMO CyberSecurity by IERAE) for responsible disclosure of this issue.
- Record
GHSA-7gfc-8cq8-jh5f- 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 - Weakness
- CWE-285, CWE-863
- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2024-51479 No score
CVE-2024-51479 in next - Patched by Root
Root has patched CVE-2024-51479 in the next package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2024-51479- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
nextnpm |
9.5.5 up to 14.2.15 | 14.2.15 |
nextRoot:npm |
before 14.2.5-aikido.5 | 14.2.5-aikido.514.2.5-aikido.812.1.6-aikido.112.1.0-aikido.112.1.5-aikido.112.2.5-aikido.113.4.19-aikido.613.4.19-aikido.714.2.10-aikido.314.2.13-aikido.314.0.4-aikido.614.0.4-aikido.913.4.19-aikido.214.1.3-aikido.214.1.0-aikido.413.3.0-aikido.514.0.4-aikido.113.4.19-aikido.314.0.4-aikido.514.0.4-aikido.714.0.4-aikido.214.1.0-aikido.714.1.0-aikido.814.0.4-aikido.314.2.3-aikido.514.2.0-aikido.214.0.3-aikido.314.2.5-aikido.914.2.5-aikido.1014.2.2-aikido.712.3.4-aikido.414.1.3-aikido.514.0.0-aikido.714.2.10-aikido.414.2.13-aikido.414.2.10-aikido.214.1.4-aikido.512.3.4-aikido.513.2.4-aikido.314.2.0-aikido.614.0.4-aikido.414.2.0-aikido.514.2.2-aikido.912.3.7-aikido.112.3.4-aikido.913.1.6-aikido.113.2.4-aikido.414.2.5-aikido.114.0.3-aikido.612.3.4-aikido.614.0.0-aikido.514.2.5-aikido.214.2.5-aikido.314.2.2-aikido.314.2.3-aikido.314.2.2-aikido.414.2.2-aikido.514.2.2-aikido.613.5.4-aikido.514.1.3-aikido.614.2.5-aikido.413.3.0-aikido.614.0.3-aikido.414.2.13-aikido.214.2.5-aikido.612.3.4-aikido.314.0.0-aikido.314.1.4-aikido.713.3.0-aikido.213.5.4-aikido.213.5.6-aikido.213.2.4-aikido.512.3.4-aikido.713.3.0-aikido.714.0.3-aikido.514.1.4-aikido.813.5.4-aikido.614.1.3-aikido.714.0.0-aikido.614.2.5-aikido.714.2.3-aikido.414.2.2-aikido.813.4.19-aikido.414.2.3-aikido.213.5.6-aikido.313.5.6-aikido.414.1.4-aikido.913.2.4-aikido.214.1.3-aikido.113.3.0-aikido.313.5.6-aikido.512.3.1-aikido.314.1.3-aikido.813.2.4-aikido.713.5.6-aikido.613.5.11-aikido.814.0.4-aikido.814.1.4-aikido.613.3.0-aikido.412.3.4-aikido.814.1.0-aikido.514.0.0-aikido.414.1.0-aikido.313.5.4-aikido.312.3.1-aikido.414.2.0-aikido.313.4.19-aikido.514.0.0-aikido.213.5.4-aikido.414.1.3-aikido.313.3.0-aikido.813.1.6-aikido.213.2.4-aikido.612.1.0-aikido.212.1.6-aikido.213.5.11-aikido.912.3.7-aikido.214.0.3-aikido.214.1.3-aikido.412.1.5-aikido.214.2.0-aikido.412.2.5-aikido.212.3.1-aikido.612.3.1-aikido.514.1.0-aikido.613.5.6-aikido.714.2.15-aikido.114.2.15-aikido.214.2.15-aikido.414.2.15-aikido.314.2.15-aikido.514.2.15-aikido.6 |
@rootio/nextRoot:npm |
before 14.2.5-root.io.5 | 14.2.5-root.io.514.2.5-root.io.812.1.6-root.io.112.1.0-root.io.112.1.5-root.io.112.2.5-root.io.113.4.19-root.io.613.4.19-root.io.714.2.10-root.io.314.2.13-root.io.314.0.4-root.io.614.0.4-root.io.913.4.19-root.io.214.1.3-root.io.214.1.0-root.io.413.3.0-root.io.514.0.4-root.io.114.0.4-root.io.513.4.19-root.io.314.0.4-root.io.714.0.4-root.io.214.1.0-root.io.714.1.0-root.io.814.0.4-root.io.314.2.3-root.io.514.2.0-root.io.214.0.3-root.io.314.2.5-root.io.914.2.5-root.io.1014.2.2-root.io.712.3.4-root.io.414.1.3-root.io.514.0.0-root.io.714.2.10-root.io.414.2.13-root.io.414.2.10-root.io.214.1.4-root.io.512.3.4-root.io.513.2.4-root.io.314.2.0-root.io.614.0.4-root.io.414.2.0-root.io.514.2.2-root.io.912.3.7-root.io.112.3.4-root.io.913.1.6-root.io.113.2.4-root.io.414.2.5-root.io.114.0.3-root.io.612.3.4-root.io.614.0.0-root.io.514.2.5-root.io.214.2.5-root.io.314.2.3-root.io.314.2.2-root.io.314.2.2-root.io.413.5.4-root.io.514.2.2-root.io.514.2.2-root.io.614.1.3-root.io.614.2.5-root.io.413.3.0-root.io.614.0.3-root.io.414.2.13-root.io.214.2.5-root.io.612.3.4-root.io.314.0.0-root.io.314.1.4-root.io.713.3.0-root.io.213.5.4-root.io.213.5.6-root.io.213.2.4-root.io.512.3.4-root.io.713.3.0-root.io.714.0.3-root.io.514.1.4-root.io.813.5.4-root.io.614.1.3-root.io.714.0.0-root.io.614.2.5-root.io.714.2.3-root.io.414.2.2-root.io.813.4.19-root.io.414.2.3-root.io.213.5.6-root.io.313.5.6-root.io.414.1.4-root.io.913.2.4-root.io.214.1.3-root.io.113.3.0-root.io.313.5.6-root.io.512.3.1-root.io.313.2.4-root.io.714.1.3-root.io.813.5.6-root.io.613.5.11-root.io.814.0.4-root.io.814.1.4-root.io.613.3.0-root.io.412.3.4-root.io.814.1.0-root.io.514.0.0-root.io.414.1.0-root.io.313.5.4-root.io.312.3.1-root.io.414.2.0-root.io.313.4.19-root.io.514.0.0-root.io.213.5.4-root.io.414.1.3-root.io.313.3.0-root.io.813.1.6-root.io.213.2.4-root.io.612.1.0-root.io.212.1.6-root.io.213.5.11-root.io.912.3.7-root.io.214.0.3-root.io.214.1.3-root.io.412.1.5-root.io.214.2.0-root.io.412.2.5-root.io.212.3.1-root.io.612.3.1-root.io.514.1.0-root.io.613.5.6-root.io.714.2.15-root.io.114.2.15-root.io.214.2.15-root.io.414.2.15-root.io.314.2.15-root.io.514.2.15-root.io.6 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-51479 is a high vulnerability (CVSS 7.5) in Vercel Next.js, published December 17, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.00%, the 90th percentile. Fixed in next 14.2.15.
References
github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f
github.com/vercel/next.js/releases/tag/v14.2.15
github.com/vercel/next.js/commit/1c8234eb20bc8afd396b89999a00f06b61d72d7b
nvd.nist.gov/vuln/detail/CVE-2024-51479
github.com/advisories/GHSA-7gfc-8cq8-jh5f
github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51479.json
github.com/vercel/next.js