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-2026-27980

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

CVE-2026-27980 is a denial of service flaw in Vercel Next.js that allows attackers to exhaust disk space through unbounded image cache growth. This article covers technical details, affected versions, and mitigation steps.

Published: March 20, 2026

CVE-2026-27980 Overview

Next.js, the popular React framework for building full-stack web applications, contains a resource exhaustion vulnerability in its image optimization disk cache functionality. Starting in version 10.0.0 and prior to version 16.1.7, the default Next.js image optimization disk cache (/_next/image) did not have a configurable upper bound, allowing unbounded cache growth. An attacker could generate many unique image-optimization variants and exhaust disk space, causing denial of service.

Critical Impact

Attackers can exhaust server disk space by generating numerous unique image optimization variants, leading to denial of service conditions that affect application availability.

Affected Products

  • Vercel Next.js versions 10.0.0 through 16.1.6

Discovery Timeline

  • 2026-03-18 - CVE CVE-2026-27980 published to NVD
  • 2026-03-18 - Last updated in NVD database

Technical Details for CVE-2026-27980

Vulnerability Analysis

This vulnerability represents a classic CWE-400 (Uncontrolled Resource Consumption) flaw in the Next.js image optimization subsystem. The image optimization feature at the /_next/image endpoint processes and caches optimized versions of images based on requested parameters such as width, quality, and format. Prior to the fix, this cache implementation lacked any mechanism to limit its growth or evict old entries.

The architectural oversight means that each unique combination of image source, dimensions, and quality settings creates a new cache entry on disk. Since the cache had no maximum size configuration or eviction policy, attackers could systematically request images with varying parameters to continuously expand the cache directory until the server's disk space is exhausted.

Root Cause

The vulnerability stems from the absence of an upper bound configuration for the image optimization disk cache. The .next/cache/images directory could grow indefinitely without any Least Recently Used (LRU) eviction mechanism or size limits. The framework trusted that cache entries would be naturally bounded by legitimate usage patterns, but this assumption fails under adversarial conditions where an attacker deliberately generates high-cardinality cache entries.

Attack Vector

An attacker can exploit this vulnerability remotely over the network without authentication. The attack requires sending HTTP requests to the /_next/image endpoint with systematically varied query parameters (width, quality, source URL) to generate unique cached variants. By automating these requests with incremental or randomized parameter values, an attacker can rapidly fill disk space. The attack is low complexity as it only requires basic HTTP request capabilities and knowledge of the Next.js image optimization URL pattern.

The security patch introduces LRU-backed disk caching with the new images.maximumDiskCacheSize configuration option:

typescript
           .optional(),
         loader: z.enum(VALID_LOADERS).optional(),
         loaderFile: z.string().optional(),
+        maximumDiskCacheSize: z.number().int().min(0).optional(),
         maximumRedirects: z.number().int().min(0).max(20).optional(),
         maximumResponseBody: z
           .number()

Source: GitHub Commit

Additional error handling was added to support the LRU cache tracking:

text
   "1065": "createServerPathnameForMetadata should not be called in client contexts.",
   "1066": "createServerSearchParamsForServerPage should not be called in a client validation.",
   "1067": "The Next.js unhandled rejection filter is being installed more than once. This is a bug in Next.js.",
-  "1068": "Expected workStore to be initialized"
+  "1068": "Expected workStore to be initialized",
+  "1069": "Invariant: cache entry \"%s\" not found in dir \"%s\"",
+  "1070": "image of size %s could not be tracked by lru cache"
 }

Source: GitHub Commit

Detection Methods for CVE-2026-27980

Indicators of Compromise

  • Unusually rapid growth of the .next/cache/images directory
  • High volume of requests to /_next/image endpoint with varying query parameters
  • Disk space utilization alerts triggered on application servers
  • Error logs indicating disk write failures or "no space left on device" messages

Detection Strategies

  • Monitor HTTP access logs for patterns of sequential or randomized requests to the /_next/image endpoint from single sources
  • Implement rate limiting on the image optimization endpoint to detect and block high-frequency requests
  • Set up file system monitoring to alert on unexpected growth rates in the .next/cache/images directory
  • Use web application firewall (WAF) rules to detect and flag suspicious image optimization request patterns

Monitoring Recommendations

  • Configure disk space utilization alerts with appropriate thresholds for production servers
  • Implement application-level logging for image optimization cache operations
  • Deploy endpoint monitoring to track request volumes and parameter diversity on /_next/image
  • Establish baseline metrics for normal cache directory growth to enable anomaly detection

How to Mitigate CVE-2026-27980

Immediate Actions Required

  • Upgrade to Next.js version 16.1.7 or later to receive the security fix
  • If upgrade is not immediately possible, implement periodic cleanup of the .next/cache/images directory
  • Reduce variant cardinality by tightening images.localPatterns, images.remotePatterns, and images.qualities configuration values
  • Implement rate limiting on the /_next/image endpoint at the web server or CDN level

Patch Information

Vercel has released version 16.1.7 of Next.js which addresses this vulnerability by adding an LRU-backed disk cache with the images.maximumDiskCacheSize configuration option. The fix includes automatic eviction of least-recently-used entries when the configured limit is exceeded. For detailed patch information, see the GitHub Security Advisory GHSA-3x4c-7xq6-9pq8 and the GitHub Release v16.1.7.

Workarounds

  • Set maximumDiskCacheSize: 0 in your Next.js configuration to completely disable disk caching
  • Implement a cron job or scheduled task to periodically purge the .next/cache/images directory
  • Restrict allowed image dimensions and quality settings to reduce cache variant cardinality
  • Deploy behind a CDN with aggressive caching to reduce direct hits to the origin server's image optimization endpoint
bash
# Configuration example
# next.config.js - Configure disk cache limit
module.exports = {
  images: {
    maximumDiskCacheSize: 52428800, // 50MB limit
    // Or disable disk caching entirely:
    // maximumDiskCacheSize: 0,
  },
}

# Cron job to clean cache directory (workaround for unpatched versions)
# Add to crontab: 0 */4 * * * /path/to/clean-cache.sh
#!/bin/bash
find /app/.next/cache/images -type f -mtime +1 -delete

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 Score6.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Release v16.1.7
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3x4c-7xq6-9pq8
  • Related CVEs
  • CVE-2026-27979: Vercel Next.js DoS Vulnerability

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

  • CVE-2025-59471: Next.js Image Optimizer 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