medium

CVE-2026-64644

npm · next

Summary

Next.js: Denial of Service in the Image Optimization API using SVGs

Severity
medium
EPSS
0.7% (p52)
CWE
CWE-407
Also known as
GHSA-q8wf-6r8g-63ch
Published
2026-07-22
Updated
2026-07-22

Advisory details

Impact

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.

Workarounds

If you cannot upgrade immediately, you can avoid the expensive work by setting config.experimental.imgOptSkipMetadata : true.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.