VDB
Sign up
LOW

GHSA-c59h-r6p8-q9wc

Next.js missing cache-control header may lead to CDN caching empty reply

Quick fix

GHSA-c59h-r6p8-q9wc — next: upgrade to the fixed version with the command below.

npm install next@13.4.20-canary.13

Details

Next.js before 13.4.20-canary.13 lacks a cache-control header and thus empty prefetch responses may sometimes be cached by a CDN, causing a denial of service to all users requesting the same URL via that CDN. Cloudflare considers these requests cacheable assets.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/next
Introduced in: 0.9.9Fixed in: 13.4.20-canary.13
Fixnpm install next@13.4.20-canary.13

References