{"cve":"CVE-2025-59471","nvd":{"published":"2026-01-26T22:15:52.890","modified":"2026-06-17T09:46:13.220","status":"Analyzed","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.\r\n\r\nStrongly consider upgrading to 15.5.10 or 16.1.5 to reduce risk and prevent availability issues in Next applications.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400"],"references":["https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f"],"products":["vercel:next.js"],"source":"nvd","synced_at":"2026-10-19T22:21:16.563232421+00:00"},"epss":{"cve":"CVE-2025-59471","score":0.00487,"percentile":0.41947,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-9g9p-9gw9-jx7f","url":"https://osv.dev/vulnerability/GHSA-9g9p-9gw9-jx7f","summary":"Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration","modified":"2026-09-10T03:50:59.013924260Z","packages":[{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=10.0.0 <15.5.10"],"fixed":["15.5.10"]},{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=15.6.0-canary.0 <16.1.5"],"fixed":["16.1.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}