CVE-2024-51479Vercel Next.js
High 7.5 No auth needed
Follow: this CVE · Vercel · Vercel Next.js We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 4.2% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Dec 17, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Next.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | next |
≥ 9.5.5 < 14.2.15 |
14.2.15 |
npm install next@14.2.15 |
Per OSV / GitHub Advisories (GHSA-7gfc-8cq8-jh5f). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | ≥ 9.5.5 < 14.2.15 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- github.com Vendor Advisory