{"id":"GHSA-9g9p-9gw9-jx7f","revision":"ba255497920d4b0cb009e0c3e0ad8445","records":[{"revision":"ba255497920d4b0cb009e0c3e0ad8445","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9g9p-9gw9-jx7f","aliases":["CVE-2025-59471"],"title":"Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration","description":"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.","state":0,"publishedAt":"2026-01-27T19:18:25+00:00","modifiedAt":"2026-09-10T03:50:59.0139243+00:00","affected":[{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"10.0.0"},{"kind":"fixed","version":"15.5.10"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"15.6.0-canary.0"},{"kind":"fixed","version":"16.1.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f","https://nvd.nist.gov/vuln/detail/CVE-2025-59471","https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c","https://github.com/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec","https://github.com/vercel/next.js","https://github.com/vercel/next.js/releases/tag/v15.5.10","https://github.com/vercel/next.js/releases/tag/v16.1.5"],"sourceUrl":"https://github.com/advisories/GHSA-9g9p-9gw9-jx7f","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9g9p-9gw9-jx7f","identifiers":["GHSA-9g9p-9gw9-jx7f","CVE-2025-59471"]},"retained":false,"historicalAffected":[]}],"coverage":[]}