VDB
Sign up
MEDIUM5.3

GHSA-4jqv-mc3x-m676

Next.js has cache poisoning of SSG and ISR pages in self-hosted applications

Quick fix

GHSA-4jqv-mc3x-m676 — next: upgrade to the fixed version with the command below.

npm install next@15.5.27

Details

Self-hosted Next.js applications that use the Pages Router with statically generated (SSG) or incrementally regenerated (ISR) pages can have a page's cache entry replaced with content from a different route, causing the affected page to serve wrong content to every visitor until the entry is revalidated. Applications deployed on Vercel are not affected.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References