Wiz Agents & Workflows are here

CVE-2025-49005
NixOS vulnerability analysis and mitigation

Overview

Next.js, a React framework for building full-stack web applications, disclosed a cache poisoning vulnerability (CVE-2025-49005) affecting versions 15.3.0 to 15.3.3 and Vercel CLI versions 41.4.1 to 42.2.0. The vulnerability was discovered on July 3, 2025, and allowed page requests for HTML content to return a React Server Component (RSC) payload instead under certain conditions (Vercel Changelog, GitHub Advisory).

Technical details

The vulnerability stems from improper cache key separation when middleware rewrites or redirects are involved, resulting in the cache-busting parameter being stripped by user redirects. The issue has a CVSS v3.1 score of 3.7 (Low) with a vector string of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N. The technical root cause involved the omission of proper Vary headers to distinguish between different content types, specifically between RSC and HTML responses (GitHub Advisory).

Impact

When deployed on Vercel, the vulnerability only affected browser caches without poisoning the CDN. However, in self-hosted and externally deployed environments, the issue could lead to cache poisoning if the CDN failed to properly distinguish between RSC and HTML content in cache keys. This could result in serving RSC payloads instead of HTML, leading to broken or incorrect client content (Vercel Changelog).

Mitigation and workarounds

The issue was patched in Next.js version 15.3.3 by ensuring proper Vary header implementation to distinguish between different content types. For users unable to upgrade immediately, workarounds include manually adding the Vary header (Vary: RSC, Next-Router-State-Tree, Next-Router-Prefetch) on RSC responses or applying unique cache-busting search parameters to middleware redirect destinations. Customers hosting on Vercel with affected CLI versions must redeploy their applications to implement the fix (Vercel Changelog).

Community reactions

The vulnerability received attention from the development community, as evidenced by GitHub issue discussions and the quick response from the Next.js team. The fix was implemented and released promptly, with the community actively participating in testing and verification of the patch (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-30892HIGH7.8
  • NixOSNixOS
  • crun
NoYesMar 26, 2026
CVE-2026-33223MEDIUM5.4
  • NixOSNixOS
  • nats-fips
NoYesMar 25, 2026
CVE-2026-33222MEDIUM4.9
  • NixOSNixOS
  • nats-fips
NoYesMar 25, 2026
CVE-2026-33249MEDIUM4.3
  • NixOSNixOS
  • k3s-1.32
NoYesMar 25, 2026
CVE-2026-33248MEDIUM4.2
  • NixOSNixOS
  • github.com/nats-io/nats-server/v2
NoYesMar 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management