The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-59471

CVE-2025-59471: Next.js Image Optimizer DoS Vulnerability

CVE-2025-59471 is a denial of service vulnerability in Next.js Image Optimizer that allows attackers to cause out-of-memory conditions through large image requests. This article covers technical details, affected versions, and patches.

Published: January 30, 2026

CVE-2025-59471 Overview

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.

Critical Impact

Attackers can exhaust server memory by forcing the Next.js Image Optimizer to process arbitrarily large external images, causing application downtime and potential service disruption.

Affected Products

  • Self-hosted Next.js applications with remotePatterns configured
  • Next.js versions prior to 15.5.10
  • Next.js versions prior to 16.1.5

Discovery Timeline

  • 2026-01-26 - CVE CVE-2025-59471 published to NVD
  • 2026-01-27 - Last updated in NVD database

Technical Details for CVE-2025-59471

Vulnerability Analysis

This vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption), which describes scenarios where an application fails to properly limit the resources consumed by an operation. In this case, the Next.js Image Optimizer endpoint lacks proper safeguards against processing excessively large images from external sources.

The /_next/image endpoint is designed to optimize images for better web performance. When remotePatterns is configured to allow external image sources, the optimizer fetches and processes these images. The critical flaw lies in the absence of a maximum size limit for incoming image data—the entire image is loaded into memory before any processing begins.

An attacker who can either control an image on an allowed domain or identify an existing large image on a permitted remote source can trigger memory exhaustion. By sending multiple concurrent requests to optimize extremely large images, the attacker can rapidly consume all available server memory, leading to application crashes and denial of service conditions.

Root Cause

The root cause of this vulnerability is the missing validation of image size before loading external images into memory. The Image Optimizer endpoint does not enforce a maximum file size limit for remote images specified via remotePatterns, allowing unbounded memory allocation when processing requests.

Attack Vector

The attack vector is network-based and does not require authentication. An attacker can exploit this vulnerability remotely by sending crafted requests to the /_next/image endpoint with URLs pointing to extremely large images on domains permitted by the remotePatterns configuration. The attacker must either control content on an allowed domain or identify existing large images that match the configured patterns. By sending multiple concurrent optimization requests for large images, memory resources can be exhausted, causing the application to become unresponsive or crash.

Detection Methods for CVE-2025-59471

Indicators of Compromise

  • Unusual spikes in memory consumption on servers running Next.js applications
  • Repeated requests to the /_next/image endpoint with external image URLs
  • Application crashes or out-of-memory errors in server logs
  • High volume of requests from single IP addresses targeting the image optimization endpoint

Detection Strategies

  • Monitor server memory utilization and set alerts for abnormal consumption patterns
  • Implement request rate limiting on the /_next/image endpoint
  • Review access logs for suspicious patterns of external image optimization requests
  • Deploy web application firewalls (WAF) with rules to detect and block abuse of image processing endpoints

Monitoring Recommendations

  • Enable detailed logging for the /_next/image endpoint to track external image requests
  • Set up memory threshold alerts to detect potential exploitation attempts before service degradation
  • Monitor for repeated requests with URLs pointing to unusually large image files
  • Implement anomaly detection for traffic patterns targeting the image optimization functionality

How to Mitigate CVE-2025-59471

Immediate Actions Required

  • Upgrade to Next.js version 15.5.10 or 16.1.5 immediately to receive the security patch
  • Review and restrict remotePatterns configuration to only trusted and necessary domains
  • Implement rate limiting on the /_next/image endpoint to reduce exploitation impact
  • Consider temporarily disabling remote image optimization if immediate patching is not possible

Patch Information

Vercel has released security patches in Next.js versions 15.5.10 and 16.1.5 that address this memory exhaustion vulnerability. Organizations should upgrade to these versions as soon as possible. For detailed information about the fix, refer to the GitHub Security Advisory.

Workarounds

  • Restrict remotePatterns to only include trusted domains that you control
  • Implement a reverse proxy with request body size limits in front of the Next.js application
  • Deploy rate limiting at the infrastructure level to prevent abuse of the image endpoint
  • Consider using a CDN with built-in image optimization to offload processing from the application server
bash
# Example: Restrict remotePatterns in next.config.js to trusted domains only
# Review and minimize allowed domains in your configuration:
# remotePatterns: [
#   {
#     protocol: 'https',
#     hostname: 'your-trusted-domain.com',
#   },
# ]
# 
# Additionally, implement rate limiting via nginx:
# limit_req_zone $binary_remote_addr zone=image_limit:10m rate=10r/s;
# location /_next/image {
#     limit_req zone=image_limit burst=20 nodelay;
#     proxy_pass http://nextjs_backend;
# }

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechNext.js

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27979: Vercel Next.js DoS Vulnerability

  • CVE-2026-27980: Vercel Next.js DOS Vulnerability

  • CVE-2025-59472: Next.js Memory Exhaustion DoS Vulnerability

  • CVE-2024-56332: Vercel Next.js DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English