CVE-2025-49005: Cache poisoning vulnerability in Next.js App Router
A cache poisoning vulnerability in Next.js App Router 15.3.0–15.3.2 and Vercel CLI 41.4.1–42.2.0 allowed page requests to return React Server Component payloads instead of HTML under certain conditions with middleware redirects. This could poison browser caches on Vercel and CDN caches in self-hosted deployments. The issue is resolved in Next.js 15.3.3; affected Vercel customers must redeploy their applications.
Summary
Impact
Resolution
Workarounds
Credit
References
A cache poisoning vulnerability affecting has been resolved. The issue allowed page requests for HTML content to return a React Server Component (RSC) payload instead under certain conditions. When deployed to Vercel, this would only impact the browser cache, and would not lead to the CDN being poisoned. When self-hosted and deployed externally, this could lead to cache poisoning if the CDN does not properly distinguish between RSC / HTML in the cache keys.Next.js App Router >=15.3.0 < 15.3.3 /Vercel CLI 41.4.1–42.2.0
Under specific conditions involving App Router, middleware redirects, and omitted headers, applications may:Vary
This issue occurs in environments where middleware rewrites or redirects result in improper cache key separation, because the cache-busting parameter added by the framework is stripped by the user’s redirect.
The issue was resolved in by:Next.js 15.3.3
Customers hosting on Vercel with deployments that used the impacted CLI versions must their applications to receive the fix.redeploy
Thanks to and for timely reports and debugging assistance.internal incident response teamsaffected Vercel customers
Serve RSC payloads in place of HTML
Cache these responses at the browser or CDN layer
Display broken or incorrect client content
Ensuring the header is correctly set to distinguish between different content types
Vary
Manually add the Vary header on RSC responses to differentiate between RSC and HTML payloads. Specifically, .
Vary: RSC, Next-Router-State-Tree, Next-Router-PrefetchApply a unique cache-busting search parameter to the middleware redirect destination
Source: original entry ↗
More from Vercel
Follow Vercel to get its new changes in your feed and email digest.
Updates to Hobby and Pro Terms of Service
Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.
Mercury 3 now available on AI Gateway
Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.
MiniMax M3.1 Flash now available on AI Gateway for free
MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.