Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. CVE-2026-64644

CVE-2026-64644: Next.js: Denial of Service in the Image Optimization API using SVGs

July 22, 2026

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.

  • If you are using config.images.remotePatterns, only the patterns in that array are impacted.
  • If you are using config.images.unoptimized: true, you are NOT impacted.
  • If you are using config.images.loader: 'custom', you are NOT impacted.
  • If you are using Vercel, you are NOT impacted.

References

  • github.com/advisories/GHSA-q8wf-6r8g-63ch
  • github.com/vercel/next.js/commit/93cb90891402fa4c47798d03cb9e05c13233766c
  • github.com/vercel/next.js/pull/96006
  • github.com/vercel/next.js/releases/tag/v15.5.21
  • github.com/vercel/next.js/releases/tag/v16.2.11
  • github.com/vercel/next.js/security/advisories/GHSA-q8wf-6r8g-63ch
  • nvd.nist.gov/vuln/detail/CVE-2026-64644

Code Behaviors & Features

Detect and mitigate CVE-2026-64644 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 15.5.0 before 15.5.21, all versions starting from 16.0.0 before 16.2.11

Fixed versions

  • 15.5.21
  • 16.2.11

Solution

Upgrade to versions 15.5.21, 16.2.11 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

npm/next/CVE-2026-64644.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:52 +0000.