{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-59471","id":"CVE-2025-59471","title":"Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration","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 vulnerabilit","descriptionLong":"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.","published":"2026-01-26T21:43:05.094Z","updated":"2026-10-28T02:30:44.689715196Z","reserved":"2025-09-16T15:00:07.876Z","status":"Analyzed","rejected":false,"assigner":"hackerone","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"hackerone"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"hackerone"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"hackerone.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["vercel next"],"affectedProducts":[{"vendor":"vercel","product":"next","defaultStatus":"unaffected","versions":[{"version":"10.0","status":"affected","lessThan":"10.0","versionType":"semver"},{"version":"11.0","status":"affected","lessThan":"11.0","versionType":"semver"},{"version":"12.0","status":"affected","lessThan":"12.0","versionType":"semver"},{"version":"13.0","status":"affected","lessThan":"13.0","versionType":"semver"},{"version":"14.0","status":"affected","lessThan":"14.0","versionType":"semver"},{"version":"15.0","status":"affected","lessThan":"15.5.10","versionType":"semver"},{"version":"16.0","status":"affected","lessThan":"16.1.5","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=10.0.0 <15.5.10",">=15.6.0-canary.0 <16.1.5"],"fixed":["15.5.10","16.1.5"],"advisory":"GHSA-9g9p-9gw9-jx7f"}],"cwes":["CWE-400","CWE-770"],"aliases":["GHSA-9g9p-9gw9-jx7f"],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f","tags":["Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59471.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59471","tags":["advisory"]},{"url":"https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c","tags":["web"]},{"url":"https://github.com/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec","tags":["web"]},{"url":"https://github.com/vercel/next.js","tags":["package"]},{"url":"https://github.com/vercel/next.js/releases/tag/v15.5.10","tags":["web"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.1.5","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00487,"epssPercentile":0.42706,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-59471","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59471","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-59471","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9g9p-9gw9-jx7f","ok":true,"note":"GHSA-9g9p-9gw9-jx7f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-59471","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}