VDB
Sign up
MEDIUM4.8

GHSA-mcj8-r9mp-w47p

Next.js has cache poisoning in SSG/ISR rendering that leads to cross-user content substitution and persistent denial of service

Quick fix

GHSA-mcj8-r9mp-w47p — next: upgrade to the fixed version with the command below.

npm install next@16.3.8

Details

Next.js applications that use a root-level catch-all page together with statically generated or Incremental Static Regeneration routes can have their shared response cache poisoned by a single unauthenticated crafted request.

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
npm/next
Introduced in: 15.0.0Fixed in: 15.5.27
Fixnpm install next@15.5.27

References