CVE Catalog

CVE-2026-119346

MediumCVSS 6.0
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.41%

37th percentile - higher than 37% of all known CVEs

Summary

Next.js versions 15.0.0 through 15.5.29 and 16.4.5, in applications using NextResponse to set cookies on Edge runtime routes, expose the internal x-middleware-set-cookie header in the public response. This header duplicates each cookie's value and attributes, allowing JavaScript to read values marked HttpOnly, including session tokens.

Risk Assessment

Sensitive session tokens may be stolen by JavaScript running on the same origin, leading to session hijacking.

Recommendation

Update Next.js to version 16.4.5 or 15.5.29 (or later), which fix this vulnerability.

Other vulnerabilities in Next.js

See all
Original NVD description (English source)

Next.js is a React framework for building full-stack web applications. From 15.0.0 until 15.5.29 and 16.4.5, Next.js applications that use NextResponse to set cookies on Edge runtime routes expose the internal x-middleware-set-cookie header in the public response. This affects App Router route handlers and Pages Router Edge API routes. The header duplicates each cookie value and its attributes, so JavaScript already running on the same origin can read values that the Set-Cookie header marks HttpOnly, including sensitive session tokens set on an affected response. This issue is fixed in versions 16.4.5 and 15.5.29.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS