# CVE-2025-59471: next DoS — Fixed in 15.5.10

📦

📦 npm

Not in CISA KEV

MEDIUM severity

# CVE-2025-59471 — next

MEDIUM [Fix: vercel/next.js@500ec83](https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c)

CVE-2025-59471 is a medium-severity (CVSS 5.9) Uncontrolled Resource Consumption vulnerability in next. A fix is available for next — see the affected versions and patch details below.

Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration

Also known as[GHSA-9g9p-9gw9-jx7f](/vulnerability/GHSA-9g9p-9gw9-jx7f)

Published

Jan 26, 2026

Updated

Oct 28, 2026

Affected

2 pkgs

Patched

2 / 2

Exploits

None indexed

Exploitation data as of Nov 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

## Exploitation Status

### No confirmed exploitation observed yet

-   CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-59471.

## EPSS Exploitation Probability

[via FIRST.org ↗](https://www.first.org/epss/)

0.5%probability of exploitation in next 30 days

Lower Risk0.00%

Lower risk than most CVEs42th percentile — riskier than 42% of all scored CVEsHighest risk

0.00%0.33%0.66%1.00%0.0%0.5%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from [FIRST.org EPSS](https://www.first.org/epss/).

## How urgent is this, really

## Where this sits among everything scored

## Real-World Exposure

2 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

61Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream

`next`npm

91.9Mdownloads / week

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

## Affected Packages

2 total 2 fixed

Ecosystem

Package

Vulnerable range

Fix

📦npm

`next` 

≥ 10.0.0&&< 15.5.10

15.5.10`npm install next@15.5.10`

📦npm

`next` 

≥ 15.6.0-canary.0&&< 16.1.5

16.1.5`npm install next@16.1.5`

## Affected Products

1 product · 2 configurations

Application

`next.js`vercel

≥ 16.0.0 && < 16.1.5

range

## Detection & mitigation playbook

Open-source dependency

1.  ### Detect
    
    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for next, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
    
2.  ### Fix
    
    Update next to 15.5.10 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-59471 is resolved across your whole dependency graph.
    
3.  ### Workarounds
    
    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
    

## Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

Workaround published by Red Hat

> Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Source: [Red Hat security advisory for CVE-2025-59471](https://access.redhat.com/security/cve/cve-2025-59471) (CC BY 4.0)

## Frequently Asked Questions

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 upg

O3 Security · Impact-Aware SCA

### Is CVE-2025-59471 in your dependencies?

Find it across npm, including transitive dependencies.

[Scan my dependencies](/book-demo) [How O3 SCA works](/impact-aware-sca)