CVE-2026-64644
Next.js: Denial of Service in the Image Optimization API using SVGs
Reported by github_m · Published July 27, 2026
next is fixed in 16.2.11 and 15.5.21 (npm)
Next.js is a React framework for building full-stack web applications. In versions 15.5.0 through 15.5.20 and 16.0.0 through 16.2.10, when self-hosting Next.js with the default image loader, the Image Optimization API can optimize remotely hosted images if configured (not enabled by default). If those images contain malicious content, they can cause CPU exhaustion in /_next/image endpoints.Only config.images.remotePatterns is affected, and just the patterns in that array, whereas config.images.unoptimized: true, config.images.loader: 'custom', and Vercel are not impacted. This issue has been fixed in versions 15.5.21 and 16.2.11.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| next | npm | 16.2.11, 15.5.21 |
| next.js | vercel | 16.2.11, 15.5.21 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | >= 15.5.0, < 15.5.21, >= 16.0.0, < 16.2.11 |
| npm | next | 15.5.0, 16.0.0 |
| vercel | next.js | 15.5.0, 16.0.0 |
| chainguard | langfuse-3 | 0, 0 |
| chainguard | langfuse-fips-2 | 0 |
| chainguard | langfuse-fips-3 | 0 |
| wolfi | jitsucom-jitsu | 0 |
| wolfi | langfuse-3 | 0, 0 |
| chainguard | keep | 0 |
| chainguard | homepage | 0 |
| chainguard | keep-fips | 0 |
| chainguard | jitsucom-jitsu | 0 |
| chainguard | peerdb-ui | 0 |
| chainguard | langfuse-2 | 0 |
Timeline
- Jul 21, 2026 CVE Published
- Jul 27, 2026 Coalition ESS Score
- Jul 27, 2026 CVE Updated
- Jul 28, 2026 Security Advisory (2 in total, the first dated here)
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
- Aug 13, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64644
vulnetix vdb fixes CVE-2026-64644
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64644/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vercel/next.js/security/advisories/GHSA-q8wf-6r8g-63ch x_refsource_CONFIRM
- https://github.com/vercel/next.js/pull/96006 x_refsource_MISC
- https://github.com/vercel/next.js/commit/93cb90891402fa4c47798d03cb9e05c13233766c x_refsource_MISC
- https://github.com/vercel/next.js/releases/tag/v15.5.21 x_refsource_MISC
- https://github.com/vercel/next.js/releases/tag/v16.2.11 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-64644 advisory
- https://github.com/advisories/GHSA-q8wf-6r8g-63ch advisory