Skip to main content
VulnerabilityPublished

CVE-2026-27980: vercel next.js · Uncontrolled Resource Consumption

Affects vercel next.jsSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.9 Medium : upgrade to 16.1.7 when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 16.1.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade next.js and next to 16.1.7.

Affected software

ProductAffectedFixed in
vercelnext.jsAffected
  • >=10.0.0 <16.1.7
Fixed in
  • 16.1.7
npmnextpkg:npm/nextOther threatsAffected
  • >=10.0.0 <16.1.7
Fixed in
  • 16.1.7

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate this vulnerability, organizations should upgrade Next.js to version 16.1.7 or later, which includes the fix with an LRU-backed disk cache and configurable maximum disk cache size. If immediate upgrading is not possible, administrators should implement the following measures: 1) Regularly schedule automated or manual cleanup of the `.next/cache/images` directory to prevent uncontrolled cache growth. 2) Reduce the number of unique image variants generated by tightening configuration settings such as `images.localPatterns`, `images.remotePatterns`, and `images.qualities` to limit variant cardinality. 3) Consider disabling disk caching by setting `images.maximumDiskCacheSize` to zero if caching is not critical for performance. 4) Monitor disk usage closely on servers running vulnerable versions to detect abnormal growth early. 5) Implement rate limiting or request filtering on image optimization endpoints to prevent abuse by excessive unique requests. These steps help contain the risk until a full upgrade can be performed.

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`).

References

Community reviews

Loading reviews…