CVE-2025-59471
next: NextJS Denial of Service in Image Optimizer
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-400
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | next | >=10.0.0, <15.5.10>=15.6.0-canary.0, <16.1.5 | 15.5.1016.1.5 |
| Seal npm | @seal-security/next | >=16.0.6-sp1, <16.0.6-sp999 | 16.0.6-sp999 |
| Seal npm | next | >=16.0.6-sp0, <16.0.6-sp999 | 16.0.6-sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 10 fixes
Red Hat 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | firefox | affected |
| 8 | firefox +1 | affected |
| 9 | aspnetcore-runtime-7-0 +14 | affected |
chainguard 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| langfuse-fips-2 | 2.95.12-r10 | |
| langfuse-2 | 2.95.12-r9 | |
| langfuse-fips-3 | 3.152.0-r0 | |
| langfuse-3 | 3.153.0-r0 | |
| cadence-web | 4.0.18-r0 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| trigger-dev | 4.5.0-r0 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| langfuse-3 | 3.153.0-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-59471
- github.com https://github.com/vercel/next.js
- github.com https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c
- github.com https://github.com/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec
- github.com https://github.com/vercel/next.js/releases/tag/v15.5.10
- github.com https://github.com/vercel/next.js/releases/tag/v16.1.5
- github.com https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-59471
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-59471
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.