Next.JS vulnerability can lead to DoS via cache poisoning
Affected releases · next
- 15.x15.0.4 – 15.1.7Fixed in 15.1.8
On 15.x, the newest line:
npm install next@15.1.8Not affected
16.0.0 – 16.4.2
45 releases, latest
Not affected
15.0.0 – 15.0.3
4 releases
Affected
15.0.4 – 15.1.7
13 releases
Fixed
15.1.8 – 15.5.28
65 releases
Is your project affected?
Paste your package.json, or type the range you declare for next. It is read in your browser and sent nowhere.
What happens
Summary
A vulnerability affecting Next.js has been addressed. It impacted versions 15.0.4 through 15.1.8 and involved a cache poisoning bug leading to a Denial of Service (DoS) condition.
Under certain conditions, this issue may allow a HTTP 204 response to be cached for static pages, leading to the 204 response being served to all users attempting to access the page
More details: CVE-2025-49826
Credits
Allam Rachid zhero;
Allam Yasser (inzo)