# CVE-2025-59471

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-26 · Modified: 2026-01-27
- Aliases: CGA-3m85-g76f-cv3v, CGA-pw97-fj5v-32gf, GHSA-9g9p-9gw9-jx7f, CGA-79w8-jqjh-89cr, CGA-g4w2-cxjc-8w8w, CGA-h9fx-3r46-24rq, CGA-m666-vwfj-v8rw, CGA-q8w9-8wj3-jp5f, CGA-r8x7-jhjp-vxmv, CGA-vj9r-62cx-69xp, CGA-w979-cjc5-rv7r
- Record: https://cvemate.com/vulnerability/CVE-2025-59471 · JSON: https://cvemate.com/vulnerability/CVE-2025-59471/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.487%, percentile 43.583%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard cadence-web (Chainguard): All versions (No fix recorded)
- chainguard langfuse-2 (Chainguard): \< 2.95.12-r9
- chainguard langfuse-3 (Chainguard): \< 3.153.0-r0
- chainguard langfuse-fips-2 (Chainguard): \< 2.95.12-r10
- chainguard langfuse-fips-3 (Chainguard): \< 3.152.0-r0
- wolfi langfuse-3 (Wolfi): \< 3.153.0-r0
- Npm next (Npm): ≥ 10.0.0, \< 15.5.10 \| ≥ 15.6.0-canary.0, \< 16.1.5
- vercel next: ≥ 10.0, \< 10.0 \| ≥ 11.0, \< 11.0 \| ≥ 12.0, \< 12.0 \| ≥ 13.0, \< 13.0 \| ≥ 14.0, \< 14.0 \| ≥ 15.0, \< 15.5.10 \| ≥ 16.0, \< 16.1.5
- vercel next.js: ≥ 10.0.0, \< 15.5.10 \| ≥ 16.0.0, \< 16.1.5

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59471.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59471>
- <https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c>
- <https://github.com/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec>
- <https://github.com/vercel/next.js>
- <https://github.com/vercel/next.js/releases/tag/v15.5.10>
- <https://github.com/vercel/next.js/releases/tag/v16.1.5>

---

Data as of 2026-12-05T11:16:10.739Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
