Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. CVE-2024-51479

CVE-2024-51479: Next.js authorization bypass vulnerability

December 17, 2024 (updated September 10, 2025)

If a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed.

References

  • github.com/advisories/GHSA-7gfc-8cq8-jh5f
  • github.com/vercel/next.js
  • github.com/vercel/next.js/commit/1c8234eb20bc8afd396b89999a00f06b61d72d7b
  • github.com/vercel/next.js/releases/tag/v14.2.15
  • github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f
  • nvd.nist.gov/vuln/detail/CVE-2024-51479

Code Behaviors & Features

Detect and mitigate CVE-2024-51479 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 9.5.5 before 14.2.15

Fixed versions

  • 14.2.15

Solution

Upgrade to version 14.2.15 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-863: Incorrect Authorization

Source file

npm/next/CVE-2024-51479.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:57 +0000.