3.7Low

CVE-2025-49005Next.js cache poisoning due to omission of Vary header

vercel next.js Published: (1 year ago)

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.

Weakness (CWE): CWE-444

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
vercel next.js >= 15.3.0, < 15.3.3
vercel vercel 41.4.1 – < 42.2.0

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* ≥ 15.3.0 < 15.3.3
  • cpe:2.3:a:vercel:vercel:*:*:*:*:*:*:*:* ≥ 41.4.1 < 42.2.0