home / blog
2026-11-20 · high
CVE-2026-27980: Disk Exhaustion in Next.js /_next/image
CVE-2026-27980: Disk exhaustion vulnerability in Next.js image optimization cache.

CVE-2026-27980 is a vulnerability affecting Next.js's image optimization system. Starting from version 10.0.0 and prior to 16.1.7, the disk cache for image optimization had no configurable upper bound, allowing unbounded cache growth. An attacker can generate many unique image optimization variants to exhaust disk space, causing a denial of service.
The severity of this vulnerability is classified as High with a CVSS score of 7.5. On November 20, 2026, a GitHub repository was found that claims to contain exploits for this vulnerability, confirming real exploitability. An official patch has been released in version 16.1.7 of Next.js.
To protect yourself, it's crucial to update Next.js applications to version 16.1.7, which implements an LRU cache with configurable maximum size. If updating isn't immediately possible, temporary mitigations can be implemented such as periodically cleaning the image cache folder or reducing variant cardinality (tightening values for configuration parameters of local and remote patterns and image qualities).
At a glance
- What
- Vulnerability that allows disk exhaustion via the image optimization system in Next.js
- Severity
- High (CVSS 7.5)
- Affected versions
- From version 10.0.0 and prior to 16.1.7
- Fix
- Update to version 16.1.7 which includes an LRU cache with configurable maximum size
- Status
- Officially published in NVD on March 18, 2026
- Action
- Immediately update applications or implement temporary mitigations
Sources: NVD, CVE-2026-27980