Next.js
Next.js: Unbounded next/image disk cache growth can exhaust storage
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`).
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 10.0.0, < 16.1.7
Fixed in 16.1.7
Mitigation
Upgrade next.js to 16.1.7 or later.
References
- Vendor advisory github.com/vercel/next.js/security/advisories/…
- Patch github.com/vercel/next.js/commit/39eb8e0ac498b…
- Release notes github.com/vercel/next.js/releases/tag/v16.1.7
Timeline
Days relative to CVE publicationFirst public PoC 248 days after publication; not in CISA KEV. First PoC: aheybati/CVE-2026-27980 (created 20 Nov 2026, found by us: 20 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| aheybati/CVE-2026-27980 | 20 Nov 2026 +248 d | 20 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /_next/image
- Query
url=/hero.png#v=w=1920q=75w=q=- Key headers
Accept: image/webp- Ports
- 3000, 3001, 8080, 8081
- Seen in
- 1 repo: aheybati/CVE-2026-27980
- Evidence
- aheybati/CVE-2026-27980/README.md:206 aheybati/CVE-2026-27980/poc.py:140
GET /api/diag
- Ports
- 3000, 3001, 8080, 8081
- Seen in
- 1 repo: aheybati/CVE-2026-27980
- Evidence
- aheybati/CVE-2026-27980/poc.py:103
POST /api/note
- Body markers
poc-probe-- Ports
- 3000, 3001, 8080, 8081
- Seen in
- 1 repo: aheybati/CVE-2026-27980
- Evidence
- aheybati/CVE-2026-27980/poc.py:127
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/_next/image\?(?:.*&)?url=/hero\.png#v=.*w=1920.*q=75.*w=.*q=
(?i)^/api/diag(?:[?#].*)?$
(?i)^/api/note(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000,3001,8080,8081] (msg:"GG PoC-Monitor CVE-2026-27980 vercel next.js exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/_next/image"; http.uri; content:"url=/hero.png#v="; http.uri; content:"w=1920"; http.uri; content:"q=75"; http.uri; content:"w="; http.uri; content:"q="; http.header; content:"Accept: image/webp"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-27980; classtype:web-application-attack; sid:9134312; rev:1;)
alert http any any -> $HOME_NET [3000,3001,8080,8081] (msg:"GG PoC-Monitor CVE-2026-27980 vercel next.js exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/diag"; reference:url,poc.griffinguard.io/cve/CVE-2026-27980; classtype:web-application-attack; sid:9626904; rev:1;)
alert http any any -> $HOME_NET [3000,3001,8080,8081] (msg:"GG PoC-Monitor CVE-2026-27980 vercel next.js exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/note"; http.request_body; content:"poc-probe-"; reference:url,poc.griffinguard.io/cve/CVE-2026-27980; classtype:web-application-attack; sid:9475187; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: vercel next.js exploit attempt (CVE-2026-27980)
id: gg-pocmon-cve-2026-27980-9134312
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27980. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27980
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/_next/image'
cs-uri-query|contains|all:
- 'url=/hero.png#v='
- 'w=1920'
- 'q=75'
- 'w='
- 'q='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27980
title: vercel next.js exploit attempt (CVE-2026-27980)
id: gg-pocmon-cve-2026-27980-9626904
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27980. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27980
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/diag'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27980
title: vercel next.js exploit attempt (CVE-2026-27980)
id: gg-pocmon-cve-2026-27980-9475187
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27980. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27980
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/note'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27980