{
  "id": "CVE-2026-27980",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-27980",
  "published_at": "2026-03-18T00:23:34.862Z",
  "title": "Next.js: Unbounded next/image disk cache growth can exhaust storage",
  "vendor": "vercel",
  "product": "next.js",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-11-20T18:49:28Z",
    "first_seen_at": "2026-11-20T20:26:21.86Z",
    "days_after_publication": 247.8,
    "repo": "aheybati/CVE-2026-27980",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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`).",
  "cwe": "CWE-400",
  "cpes": [
    "cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.9,
    "nvd": 7.5
  },
  "repos": [
    {
      "repo": "aheybati/CVE-2026-27980",
      "url": "https://github.com/aheybati/CVE-2026-27980",
      "created_at": "2026-11-20T18:49:28Z",
      "first_seen_at": "2026-11-20T20:26:21.86Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-08-01T09:38:56Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "vercel",
        "product": "next.js",
        "ranges": [
          "\u003e= 10.0.0, \u003c 16.1.7"
        ],
        "fixed_in": [
          "16.1.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade next.js to 16.1.7 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/vercel/next.js/security/advisories/GHSA-3x4c-7xq6-9pq8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/vercel/next.js/releases/tag/v16.1.7"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/_next/image",
      "query_markers": [
        "url=/hero.png#v=",
        "w=1920",
        "q=75",
        "w=",
        "q="
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "image/webp"
        }
      ],
      "ports": [
        3000,
        3001,
        8080,
        8081
      ],
      "protocol": "http",
      "repos": [
        "aheybati/CVE-2026-27980"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "aheybati/CVE-2026-27980/README.md:206",
        "aheybati/CVE-2026-27980/poc.py:140"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/diag",
      "ports": [
        3000,
        3001,
        8080,
        8081
      ],
      "protocol": "http",
      "repos": [
        "aheybati/CVE-2026-27980"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "aheybati/CVE-2026-27980/poc.py:103"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/note",
      "body_markers": [
        "poc-probe-"
      ],
      "ports": [
        3000,
        3001,
        8080,
        8081
      ],
      "protocol": "http",
      "repos": [
        "aheybati/CVE-2026-27980"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "aheybati/CVE-2026-27980/poc.py:127"
      ]
    }
  ],
  "rules": []
}
