{"id":"GHSA-3x4c-7xq6-9pq8","revision":"d4c3ea5166d84fe8af64d00f7c107bea","records":[{"revision":"d4c3ea5166d84fe8af64d00f7c107bea","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-3x4c-7xq6-9pq8","aliases":["CVE-2026-27980"],"title":"Next.js: Unbounded next/image disk cache growth can exhaust storage","description":"## Summary\nThe default Next.js image optimization disk cache (`/_next/image`) did not have a configurable upper bound, allowing unbounded cache growth.\n\n## Impact\nAn attacker could generate many unique image-optimization variants and exhaust disk space, causing denial of service. Note that this does not impact platforms that have their own image optimization capabilities, such as Vercel.\n\n## Patches\nFixed 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. \n\n## Workarounds\nIf upgrade is not immediately possible:\n- Periodically clean `.next/cache/images`.\n- Reduce variant cardinality (e.g., tighten values for `images.localPatterns`, `images.remotePatterns`, and `images.qualities`)","state":0,"publishedAt":"2026-03-17T16:17:06+00:00","modifiedAt":"2026-09-10T03:50:36.9500188+00:00","affected":[{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"16.0.0-beta.0"},{"kind":"fixed","version":"16.1.7"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"10.0.0"},{"kind":"fixed","version":"15.5.14"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/vercel/next.js/security/advisories/GHSA-3x4c-7xq6-9pq8","https://nvd.nist.gov/vuln/detail/CVE-2026-27980","https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd","https://github.com/vercel/next.js","https://github.com/vercel/next.js/releases/tag/v16.1.7"],"sourceUrl":"https://github.com/advisories/GHSA-3x4c-7xq6-9pq8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3x4c-7xq6-9pq8","identifiers":["GHSA-3x4c-7xq6-9pq8","CVE-2026-27980"]},"retained":false,"historicalAffected":[]}],"coverage":[]}