Skip to main content
← All vulnerabilities
CVE-2025-59471GHSA-9G9P-9GW9-JX7F

A denial of service vulnerability exists in self-hosted Next.js applications that have `remotePatterns` configured for the Image Optimizer.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.0, 11.0, 12.0, 13.0, 14.0, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • 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

  • nextnpm

    From 10.0.0 · fixed in 15.5.10

  • nextnpm

    From 15.6.0-canary.0 · fixed in 16.1.5

References 1

GitHub · vercel/next.js