Insertion of Sensitive Information Into Sent Data in Next.js - CVE-2026-119346
Published: November 4, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive HttpOnly cookie values, including session tokens, through JavaScript running on the application's origin.
The vulnerability exists due to exposure of sensitive cookie data in a public response header in Next.js Edge runtime routes when setting cookies through NextResponse. A remote attacker can use JavaScript running on the same origin to read the internal x-middleware-set-cookie response header and obtain sensitive cookie values that would otherwise be inaccessible to JavaScript through the HttpOnly protection.