CVE-2026-27980: medium-severity vulnerability in vercel next.js
Next.js: Unbounded next/image disk cache growth can exhaust storage
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Next.js's image optimization feature stores cached images on disk without a size limit, allowing an attacker to fill up your server's storage by requesting many different image variants. This can crash your application and make your website unavailable.
CVE-2026-27980 affects Next.js versions 10.0.0 to 16.1.6 where the `/_next/image` cache directory grows unbounded without enforced limits. An attacker can exploit CWE-400 (Uncontrolled Resource Consumption) by crafting requests with varied image optimization parameters to exhaust disk space, resulting in denial of service. Mitigation requires upgrading to 16.1.7+ which implements LRU eviction via `images.maximumDiskCacheSize`, or temporarily cleaning cache directories and restricting image variant generation patterns.
In the same product, most dangerous first.