VDB
Sign up
MEDIUM5.3

GHSA-f87g-xv8r-7p7x

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

Quick fix

GHSA-f87g-xv8r-7p7x — next: upgrade to the fixed version with the command below.

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()`.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/next
Introduced in: 16.0.0Fixed in: 16.3.8
Fixnpm install next@16.3.8

References