Skip to content

CVE-2026-119346 Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes

MediumCVSS 6.0 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm next(npm) >= 15.0.0, < 15.5.29; >= 15.0.0, <= 15.5.28; >= 16.0.0, < 16.4.5; >= 16.0.0, <= 16.4.4 15.5.29, 16.4.5 Fixed
vercel next.js = >= 15.0.0, < 15.5.29; = >= 16.0.0, < 16.4.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
vercel next.js = >= 15.0.0, < 15.5.29 No fix listed
vercel next.js = >= 16.0.0, < 16.4.5 No fix listed
npm next(npm) >= 15.0.0, <= 15.5.28 No fix listed
npm next(npm) >= 16.0.0, <= 16.4.4 No fix listed
npm next(npm) >= 15.0.0, < 15.5.29 15.5.29
npm next(npm) >= 16.0.0, < 16.4.5 16.4.5

References