CVE-2026-64644

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

Published Jul 27, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The CVE describes that the Image Optimization API of Next.js can cause CPU exhaustion when processing malicious SVG images, resulting in a denial‑of‑service. This resource‑exhaustion weakness is identified as CWE‑407. Attacks would exhaust system processing capacity, potentially taking the image optimization endpoint and related services offline.

Affected Systems

Vercel Next.js versions 15.5.0 through 15.5.20 and 16.0.0 through 16.2.10 are affected when the default image loader is used and config.images.remotePatterns is configured. The vulnerability does not impact sites that set config.images.unoptimized to true, use a custom loader, or host images on Vercel's own infrastructure.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score is < 1%, indicating a very low exploitation probability. The issue is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is an application that trusts remote image URLs defined in config.images.remotePatterns; an attacker can host a crafted SVG file that, when requested through the /_next/image endpoint, will trigger CPU exhaustion and disrupt service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Next.js to version 15.5.21 or later, or 16.2.11 or later, to apply the vendor‑provided fix.
  • If an upgrade is not immediately possible, remove or disable remotePatterns in the image configuration so the vulnerable loader is never invoked.
  • As a temporary mitigation, restrict access to the /_next/image endpoint to trusted clients or apply rate limiting to reduce the impact of potential CPU exhaustion attacks.

Generated by OpenCVE AI on August 3, 2026 at 17:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q8wf-6r8g-63ch Next.js: Denial of Service in the Image Optimization API using SVGs
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Vercel
Vercel next.js
Vendors & Products Vercel
Vercel next.js
Type Values Removed Values Added
Description 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.
Title Next.js: Denial of Service in the Image Optimization API using SVGs
Weaknesses CWE-407
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 27, 2026, 6:35 PM
Reserved
Jul 20, 2026, 5:11 PM
Status
Analyzed
Published
Jul 27, 2026, 6:16 PM
Modified
Oct 24, 2026, 1:10 PM
Severity
Important
Public date
Jul 27, 2026, 5:54 PM