GHSA-cjq9-62q9-8jv4HighCVSS 6.5

Next.js has Server-Side Request Forgery in Image Optimization

Published
October 7, 2026
Last Modified
October 7, 2026

🔗 CVE IDs covered (1)

📋 Description

Impact

An attacker-controlled, allow-listed remote URL can lead to server-side request forgery (e.g. to private IPs) during Image Optimization.

Workaround

Audit allow-listed remote URLs in images.remotePatterns (see https://nextjs.org/docs/app/getting-started/images#remote-images) for hosts that may not be trusted with their DNS entries. If no images.remotePatterns are configured, your app is not affected.

🎯 Affected products1

  • npm/next:>= 16.0.0, < 16.3.8

🔗 References (5)