next is vulnerable to Denial of Service (DoS)
63
CVE Score
Medium
Denial of Service (DoS)
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.
Upgrade the next library to the patch version.
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.
15.5.0 - 15.5.20
Fixed in 15.5.2116.0.0 - 16.2.10
Fixed in 16.2.11next is vulnerable to Denial of Service (DoS) in versions 15.5.0 - 15.5.20 and 16.0.0 - 16.2.10.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.