CVE
CVE-2024-51479
CNA 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] `[link removed]` * [Affected] `[link removed]` * [Not affected] `[link removed]`. 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 versions
- next≥ 9.5.5, < 14.2.15Fixed in 14.2.15
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- github.com/vercel/next.js/releases/tag/v14.2.15 · Release Notes
- github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f · Vendor Advisory
- github.com/advisories/GHSA-7gfc-8cq8-jh5f · Third Party Advisory
- osv.dev/vulnerability/GHSA-7gfc-8cq8-jh5f · Third Party Advisory
- github.com/vercel/next.js/commit/1c8234eb20bc8afd396b89999a00f06b61d72 · Vendor Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.