Auth bypass in Vercel Next.js

CVE-2024-51479

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

EPSS exploit prediction

EPSS: 0.040 (90.2th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 90th percentile — 90.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2024-51479: held from 0.040 to 0.040.

EPSS over last 30 days · oldest: 0.040 · newest: 0.040 · change: +0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-51479?
CVE-2024-51479 is a high-severity vulnerability in Vercel Next.js, classified under Improper Authorization. CVSS score: 7.5/10. Published 2024-12-17.
How severe is CVE-2024-51479?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2024-51479 known to be exploited?
13 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.