Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes

State
Published
Severity
6.0 Medium
Published
Nov 16, 2026
Updated
Nov 17, 2026
Reserved
Oct 29, 2026

Read the record on cve.org

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.

ProductVersions
next.js vercel>= 15.0.0, < 15.5.29 Affected>= 16.0.0, < 16.4.5 Affected

Weaknesses

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-201 Insertion of Sensitive Information Into Sent Data

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.