GHSA-cjq9-62q9-8jv4: SSRF

Published Oct 7, 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.

Affected Software

1 affected componentFixes available
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. Compensating control

    Audit the allow-listed remote URLs in `images.remotePatterns` and remove or restrict hosts whose DNS entries are not trusted, to prevent Image Optimization requests to private IPs.

Event History

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?

Only applications that configure `images.remotePatterns` are affected. If no `images.remotePatterns` are configured, the application is not affected.

2

What must an attacker control to exploit this issue?

The attacker needs an allow-listed remote URL whose host has DNS entries that are not trusted. During Image Optimization, that URL can then cause server-side requests, including requests to private IP addresses.

3

What can be done if patching is not immediately possible?

Audit every host allowed by `images.remotePatterns` and remove or restrict hosts that may not be trusted to control their DNS entries.

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