Next.js missing cache-control header may lead to CDN caching empty reply
Low severity
GitHub Reviewed
Published
Oct 22, 2023
to the GitHub Advisory Database
•
Updated Nov 9, 2023
Package
Affected versions
>= 0.9.9, < 13.4.20-canary.13
Patched versions
13.4.20-canary.13
Description
Published by the National Vulnerability Database
Oct 22, 2023
Published to the GitHub Advisory Database
Oct 22, 2023
Reviewed
Oct 24, 2023
Last updated
Nov 9, 2023
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.
References