# CVE-2025-59471: Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration

- Severity: Medium 5.9 (CVSS:3.1, scored by hackerone) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-01-26T21:43:05.094Z
- Modified: 2026-09-10T03:50:59.013Z
- Also known as: GHSA-9g9p-9gw9-jx7f
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: hackerone

## 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.

Strongly consider upgrading to 15.5.10 or 16.1.5 to reduce risk and prevent availability issues in Next applications.

(As written by CVE List.)

## Affected

- vercel next: from 10.0 before 10.0; from 11.0 before 11.0; from 12.0 before 12.0; from 13.0 before 13.0; from 14.0 before 14.0; from 15.0 before 15.5.10; from 16.0 before 16.1.5
- next (npm): from 10.0.0 before 15.5.10; from 15.6.0-canary.0 before 16.1.5
- vercel next.js: from 10.0.0 before 15.5.10; from 16.0.0 before 16.1.5

## Every score

- hackerone: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-9g9p-9gw9-jx7f> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59471> (advisory)
- <https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c> (web)
- <https://github.com/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec> (web)
- <https://github.com/vercel/next.js> (package)
- <https://github.com/vercel/next.js/releases/tag/v15.5.10> (web)
- <https://github.com/vercel/next.js/releases/tag/v16.1.5> (web)

## Sources

- CVE List: [CVE-2025-59471](https://www.cve.org/CVERecord?id=CVE-2025-59471), CVE Terms of Use, modified 2026-01-27
- GitHub Advisory Database: [GHSA-9g9p-9gw9-jx7f](https://github.com/advisories/GHSA-9g9p-9gw9-jx7f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-59471](https://nvd.nist.gov/vuln/detail/CVE-2025-59471), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59471 · Whole record: https://cve.day/CVE-2025-59471.json · Rebuilt by cve.day 2026-11-25T22:59:10.872Z
