Skip to content

CVE-2026-27980 Next.js: Unbounded next/image disk cache growth can exhaust storage

MediumCVSS 6.9 EPSS 0.78%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Red Hat

Description

Next.js is a React framework for building full-stack web applications. 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. This is fixed in version 16.1.7 by adding an LRU-backed disk cache with images.maximumDiskCacheSize, including eviction of least-recently-used entries when the limit is exceeded. Setting maximumDiskCacheSize: 0 disables disk caching. If upgrading is not immediately possible, periodically clean .next/cache/images and/or reduce variant cardinality (e.g., tighten values for images.localPatterns, images.remotePatterns, and images.qualities).

Upgrade path

7 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
redhat/com.github.streamshub-console(Red Hat amq_streams 2.9 el9) All versions No fix listed No fix yet
redhat/com.github.streamshub-console(Red Hat amq_streams 3.2 el9) All versions No fix listed No fix yet
redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
npm next(npm) >= 10.0.0, < 15.5.14; >= 16.0.0-beta.0, < 16.1.7 15.5.14, 16.1.7 Fixed
vercel next.js = >= 10.0.0, < 16.1.7; >= 10.0.0, < 16.1.7 16.1.7 Fixed

Affected products

ProductAffected versionsFixed in
vercel next.js = >= 10.0.0, < 16.1.7 No fix listed
npm next(npm) >= 16.0.0-beta.0, < 16.1.7 16.1.7
npm next(npm) >= 10.0.0, < 15.5.14 15.5.14
redhat/com.github.streamshub-console(Red Hat:amq_streams:2.9::el9) All versions No fix listed
redhat/com.github.streamshub-console(Red Hat:amq_streams:3.2::el9) All versions No fix listed
redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
vercel next.js >= 10.0.0, < 16.1.7 16.1.7

References