HighGHSA-cjq9-62q9-8jv4CVE-2026-94483

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

Published 7 Oct 2026 · Updated 7 Oct 2026

Affected package

nextnpm
Affected
>=16.0.0 <16.3.8
Fixed in
16.3.8
Update to the fixed version for your release line, for example:npm install next@16.3.8

Details

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.

Is GHSA-cjq9-62q9-8jv4 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected next, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.