CVE-2026-27980
next.js: Next.js: Unbounded next/image disk cache growth can exhaust storage
Overview
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).
Source: OX vulnerability database
Severity
7.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-400
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | next | >=16.0.0-beta.0, <16.1.7>=10.0.0, <15.5.14 | 16.1.715.5.14 |
| Seal npm | @seal-security/next | >=16.0.6-sp1, <16.0.6-sp999 | 16.0.6-sp999 |
| Seal npm | next | >=16.0.6-sp0, <16.0.6-sp999 | 16.0.6-sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 10 fixes
chainguard 1 release · 7 packages
| Release | Package | Fixed in |
|---|---|---|
| keep +1 | 0.51.0-r5 | |
| jitsucom-jitsu | 2.11.0-r17 | |
| langfuse-2 | 2.95.12-r14 | |
| langfuse-fips-2 | 2.95.12-r17 | |
| langfuse-fips-3 | 3.162.0-r0 | |
| langfuse-3 | 3.162.0-r1 |
1 more row
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| trigger-dev | 4.5.0-r0 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| jitsucom-jitsu | 2.11.0-r17 | |
| langfuse-3 | 3.162.0-r1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-27980
- github.com https://github.com/vercel/next.js
- github.com https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd
- github.com https://github.com/vercel/next.js/releases/tag/v16.1.7
- github.com https://github.com/vercel/next.js/security/advisories/GHSA-3x4c-7xq6-9pq8
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-27980
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-27980
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.