Intel

AIKIDO-2026-675927

next is vulnerable to Denial of Service (DoS)

CVE-2026-64644Published Jul 22, 2026
July 22, 2026

63

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

When self-hosting Next.js with the default image loader, the Image Optimization API can fetch and optimize remotely hosted images when remote patterns are configured. A malicious SVG served from an allowed remote source forces expensive processing on the /_next/image endpoint, causing CPU exhaustion. Repeated requests let an unauthenticated caller degrade availability of the optimization endpoint. The fix avoids the expensive metadata work for such images. Deployments on Vercel, with unoptimized images, or with a custom loader are not affected.

How do I fix this?

Upgrade the next library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you self-host with the default image loader and have configured config.images.remotePatterns.

Package

Versions

15.5.0 - 15.5.20

Fixed in 15.5.21

16.0.0 - 16.2.10

Fixed in 16.2.11

Background info

next is vulnerable to Denial of Service (DoS) in versions 15.5.0 - 15.5.20 and 16.0.0 - 16.2.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea