CVE-2025-59471 json
Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration
published 2026-01-26 9 mo ago modified 2026-09-10 59 d ago also EUVD-2025-206334 , GHSA-9g9p-9gw9-jx7f
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm next 15.5.10, 16.1.5
- vercel next 15.5.10, 16.1.5
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-59471 updated cvss 5.9
next: NextJS Denial of Service in Image Optimizer
-
Red Hat Enterprise Linux 7 firefox Red Hat Enterprise Linux 8 firefox, thunderbird Red Hat Enterprise Linux 9 firefox, dotnet7.0, dotnet-host, firefox-x11, thunderbird, dotnet-sdk-7.0, +9 more Red Hat Enterprise Linux 10 firefox, thunderbird Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/disk-image-cuda-rhel9 Red Hat Trusted Artifact Signer rhtas/rekor-search-ui-rhel9affected: workaround, no fix available “Fix deferred”
+2 more productsfewer
Red Hat streams for Apache Kafka 2 com.github.streamshub-console Red Hat streams for Apache Kafka 3 com.github.streamshub-console
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | next | >=10.0.0, <15.5.10 >=15.6.0-canary.0, <16.1.5 |
15.5.10 16.1.5 |
Affected products
- vercel next
Classification
- Weakness
- Technology feeds
References
-
github.com
/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c
web
-
github.com
/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec
web
-
github.com
/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f
web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-59471
advisory
-
github.com
/vercel/next.js
package
-
github.com
/vercel/next.js/releases/tag/v15.5.10
web
-
github.com
/vercel/next.js/releases/tag/v16.1.5
web
Sources
- CVE List CVE-2025-59471
- GitHub Advisory GHSA-9g9p-9gw9-jx7f
- NVD CVE-2025-59471
- Maintainer advisory GHSA-9g9p-9gw9-jx7f
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of vercel/next.js published their own advisory on GitHub. Reviewed sources take precedence over it.