{"id":"CVE-2025-59471","aliases":["CVE-2025-59471","GHSA-9g9p-9gw9-jx7f"],"related":[],"kind":"vulnerability","state":"published","title":"Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration","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.\n\nStrongly consider upgrading to 15.5.10 or 16.1.5 to reduce risk and prevent availability issues in Next applications.","summarySource":"cvelist","descriptions":[{"lang":"en","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.\n\nStrongly consider upgrading to 15.5.10 or 16.1.5 to reduce risk and prevent availability issues in Next applications.","source":"cvelist"},{"lang":"en","text":"A DoS 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.\n\nStrongly consider upgrading to 15.5.10 and 16.1.5 to reduce risk and prevent availability issues in Next applications.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de denegación de servicio existe en aplicaciones Next.js autoalojadas que tienen `remotePatterns` configurado para el Optimizador de Imágenes. El endpoint de optimización de imágenes (`/_next/image`) carga imágenes externas completamente en memoria sin aplicar un límite de tamaño máximo, permitiendo a un atacante causar condiciones de falta de memoria al solicitar la optimización de imágenes arbitrariamente grandes. Esta vulnerabilidad requiere que `remotePatterns` esté configurado para permitir la optimización de imágenes desde dominios externos y que el atacante pueda servir o controlar una imagen grande en un dominio permitido.\n\nConsidere encarecidamente actualizar a 15.5.10 o 16.1.5 para reducir el riesgo y prevenir problemas de disponibilidad en aplicaciones Next.","source":"nvd"}],"published":"2026-01-26T21:43:05.094Z","modified":"2026-09-10T03:50:59.013Z","severity":{"scorer":"hackerone","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"hackerone","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"10.0","fixed":"10.0","status":"affected"},{"type":"semver","introduced":"11.0","fixed":"11.0","status":"affected"},{"type":"semver","introduced":"12.0","fixed":"12.0","status":"affected"},{"type":"semver","introduced":"13.0","fixed":"13.0","status":"affected"},{"type":"semver","introduced":"14.0","fixed":"14.0","status":"affected"},{"type":"semver","introduced":"15.0","fixed":"15.5.10","status":"affected"},{"type":"semver","introduced":"16.0","fixed":"16.1.5","status":"affected"}],"vendor":"vercel","product":"next","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"15.5.10"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"15.6.0-canary.0","status":"affected","fixed":"16.1.5"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"10.0.0","fixed":"15.5.10"},{"status":"affected","introduced":"16.0.0","fixed":"16.1.5"}],"vendor":"vercel","product":"next.js","cpe":"cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59471","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/releases/tag/v15.5.10","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.1.5","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-27T14:54:47.995Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59471","url":"https://www.cve.org/CVERecord?id=CVE-2025-59471","licence":"CVE Terms of Use","modified":"2026-01-27T14:55:15.271Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9g9p-9gw9-jx7f","url":"https://github.com/advisories/GHSA-9g9p-9gw9-jx7f","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.013Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59471","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59471","licence":"Public domain","modified":"2026-06-17T09:46:13.220Z"}],"updatedAt":"2026-11-25T22:59:10.872Z","epss":{"score":0.00487,"percentile":0.43565,"date":"2026-12-01T12:00:22.000Z"}}