Next.js cache poisoning due to omission of Vary header
Description
Next.js is a React framework for building full-stack web applications. In Next.js App Router from 15.3.0 to before 15.3.3 and Vercel CLI from 41.4.1 to 42.2.0, a cache poisoning vulnerability was found. 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. This issue has been resolved in Next.js 15.3.3.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
nextnpm | >= 15.3.0, < 15.3.3 | 15.3.3 |
Affected products
8- osv-coords7 versionspkg:apk/chainguard/jitsucom-jitsupkg:apk/chainguard/jitsucom-jitsu-consolepkg:apk/chainguard/jitsucom-jitsu-rotorpkg:apk/wolfi/jitsucom-jitsupkg:apk/wolfi/jitsucom-jitsu-consolepkg:apk/wolfi/jitsucom-jitsu-rotorpkg:npm/next
< 2.10.0-r2+ 6 more
- (no CPE)range: < 2.10.0-r2
- (no CPE)range: < 2.10.0-r2
- (no CPE)range: < 2.10.0-r2
- (no CPE)range: < 2.10.0-r2
- (no CPE)range: < 2.10.0-r2
- (no CPE)range: < 2.10.0-r2
- (no CPE)range: >= 15.3.0, < 15.3.3
Patches
Vulnerability mechanics
References
8- github.com/advisories/GHSA-r2fc-ccr8-96c4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-49005ghsaADVISORY
- github.com/vercel/next.js/commit/ec202eccf05820b60c6126d6411fe16766ecc066ghsax_refsource_MISCWEB
- github.com/vercel/next.js/issues/79346ghsax_refsource_MISCWEB
- github.com/vercel/next.js/pull/79939ghsaWEB
- github.com/vercel/next.js/releases/tag/v15.3.3ghsax_refsource_MISCWEB
- github.com/vercel/next.js/security/advisories/GHSA-r2fc-ccr8-96c4ghsax_refsource_CONFIRMWEB
- vercel.com/changelog/cve-2025-49005ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.