Input validation error in Next.js - CVE-2025-49005

 

Input validation error in Next.js - CVE-2025-49005

Published: July 4, 2025


Vulnerability identifier: #VU112179
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:U/U:Green
CVE-ID: CVE-2025-49005
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: vercel
Affected software:
Next.js

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a cache poisoning attack.

The vulnerability exists due to omission of Vary HTTP header when creating cache data in App Router. A remote attacker can force the application to cache RSC payloads and serve them in place of HTML code under specific conditions involving middleware and redirects.


How to mitigate CVE-2025-49005

Install updates from vendor's website.

Sources