CVE-2025-59471Vercel 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
- —
- Auth required
- No
- Published
- Jan 26, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
A denial of service vulnerability exists in self-hosted Next.js applications that have `remotePatterns` configured for the Image Optimizer. The image optimization endpoint (`/_next/image`) loads external images entirely into memory without enforcing a maximum size limit, allowing an attacker to cause out-of-memory conditions by requesting optimization of arbitrarily large images. This vulnerability requires that `remotePatterns` is configured to allow image optimization from external domains and that the attacker can serve or control a large image on an allowed domain.
Strongly consider upgrading to 15.5.10 or 16.1.5 to reduce risk and prevent availability issues in Next applications.
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 |
≥ 10.0.0 < 15.5.10 |
15.5.10 |
npm install next@15.5.10 |
| npm | next |
≥ 15.6.0-canary.0 < 16.1.5 |
16.1.5 |
npm install next@16.1.5 |
Per OSV / GitHub Advisories (GHSA-9g9p-9gw9-jx7f). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | ≥ 10.0.0 < 15.5.10 |
| vercel | next.js | ≥ 16.0.0 < 16.1.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory