What’s Vulnerable › Vulnerabilities

CVE-2023-46298: Next.js missing cache-control header may lead to CDN caching empty reply

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Next.js 13.4.20; Npm Next 13.4.20-canary.13. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-46298 or the next vulnerability affects your stack