CVE-2026-94483: Next.js: Server-Side Request Forgery in Image Optimization

Published Oct 2, 2026
·
Updated

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.

Other sources

Next.js is a React framework for building full-stack web applications. From 16.0.0 until 16.3.8, Image Optimization can follow attacker-controlled DNS resolution for a remote URL that matches images.remotePatterns, allowing the optimized image fetch to reach private IP addresses after the URL passes the allow-list check. Applications without images.remotePatterns are not affected. Administrators unable to upgrade should audit allow-listed hosts and avoid entries whose DNS records are not trusted. This issue is fixed in version 16.3.8.

— MITRE

Affected Software

3 affected componentsFixes available
Vercel Next.js>=16.0.0<16.3.8
Vercel Next.js Node.js>=16.0.0<16.3.8
npm/next>=16.0.0<16.3.8
16.3.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/next to a version that resolves this vulnerability.

    Fixed in 16.3.8
  2. Upgrade

    Upgrade Next.js to a version that resolves this vulnerability.

    Fixed in 16.3.8
  3. Compensating control

    Audit allow-listed remote URLs in images.remotePatterns and avoid entries whose hosts may not be trusted with their DNS entries.

Event History

Oct 2, 2026
CVE Published
via MITRE·03:18 PM
Data Sourced
via MITRE·03:18 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 7, 2026
Advisory Published
via GitHub·08:30 PM
Data Sourced
via GitHub·08:30 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are affected?

Applications using Next.js Image Optimization with images.remotePatterns configured are affected in versions from 16.0.0 up to, but not including, 16.3.8. Applications without images.remotePatterns are not affected.

2

What does an attacker need to exploit this issue?

An attacker needs to supply a remote image URL that matches an allowed images.remotePatterns entry. The issue occurs when the hostname passes the allow-list check but its DNS resolution leads the optimized image fetch to a private IP address.

3

What should be done if upgrading is not immediately possible?

Audit the hosts allowed by images.remotePatterns and avoid entries whose DNS records are not trusted. Upgrade to Next.js 16.3.8 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203