MediumGHSA-f87g-xv8r-7p7xCVE-2026-94485

Next.js has information disclosure in App Router metadata image routes via dynamicParams bypass

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

In Next.js App Router applications built with webpack, metadata image routes such as opengraph-image and twitter-image ignore the dynamicParams route segment option. An attacker can request metadata image URLs for dynamic segments that were deliberately excluded from generateStaticParams().

Is GHSA-f87g-xv8r-7p7x 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.