Next.js Cache Poisoning Vulnerability in React Server Components

Vulnerability

A cache poisoning vulnerability has been identified in Next.js versions 14.2.0 prior to 15.5.16 and 16.0.0 prior to 16.2.5, specifically in applications using React Server Components. The issue arises when shared caches fail to properly partition response variants, allowing an attacker to manipulate cache entries. This manipulation can result in subsequent users receiving component payloads instead of the expected HTML. The vulnerability is rooted in inconsistent validation and interpretation of RSC request headers, which can lead to unintended cache behavior.

Impact

Exploitation of this vulnerability allows for cache poisoning, where shared cache entries are manipulated to serve incorrect component payloads to users, disrupting the expected application behavior.

Remediation

Users can upgrade to Next.js versions 15.5.16 or 16.2.5 to address this vulnerability. If an immediate upgrade is not possible, it is recommended to ensure that the CDN or reverse proxy respects the relevant RSC request headers and the 'Vary' header, or to disable shared caching for affected App Router and RSC responses.

Added: May 13, 2026, 7:58 PM
Updated: May 13, 2026, 7:58 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
0.6
exploitability
7.2
remediation
7.9
relevance
7.8
threat
0.0
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.