next
Affected
- introduced
15.5.0, fixed15.5.21(semver)
Fixed versions
15.5.21
Fix
- Fixed version
15.5.21npm install [email protected]
Advisory
Also known as: CVE-2026-64644
Next.js: Denial of Service in the Image Optimization API using SVGs
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.
config.images.remotePatterns, only the patterns in that array are impacted.config.images.unoptimized: true, you are NOT impacted.config.images.loader: 'custom', you are NOT impacted.Workarounds
If you cannot upgrade immediately, you can avoid the expensive work by setting config.experimental.imgOptSkipMetadata : true.
Medium Basis: The source's own band: MODERATE
15.5.0, fixed 15.5.21 (semver)15.5.21
15.5.21npm install [email protected]16.0.0, fixed 16.2.11 (semver)16.2.11
16.2.11npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0