CVE-2025-59471: High severity npm/next vulnerability

Published Jan 26, 2026
·
Updated

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.

Other sources

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.

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

GitHub

Affected Software

5 affected componentsFixes available
npm/next<15.5.10, <16.1.5
npm/next>=15.6.0-canary.0<16.1.5
16.1.5
npm/next>=10.0.0<15.5.10
15.5.10
Vercel Next.js Node.js>=10.0.0<15.5.10
Vercel Next.js Node.js>=16.0.0<16.1.5

Event History

Jan 26, 2026
CVE Published
via MITRE·09:43 PM
Data Sourced
via MITRE·09:43 PM
DescriptionSeverity
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
Affected Software
Jan 27, 2026
Advisory Published
via GitHub·07:18 PM
Data Sourced
via GitHub·07:18 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-59471?

CVE-2025-59471 is classified as a denial of service vulnerability that can significantly impact application performance.

2

How do I fix CVE-2025-59471?

To resolve CVE-2025-59471, update your Next.js application to version 15.5.10 or higher, or 16.1.5 or higher.

3

What are the implications of CVE-2025-59471?

CVE-2025-59471 allows an attacker to exploit the image optimization endpoint by sending oversized images, leading to potential service downtime.

4

Which Next.js versions are affected by CVE-2025-59471?

CVE-2025-59471 affects Next.js versions prior to 15.5.10 and also versions before 16.1.5.

5

How can I mitigate risks related to CVE-2025-59471 before upgrading?

You can mitigate the risks by implementing a reverse proxy that limits the size of incoming requests to the image optimization endpoint.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203