cvelo
P3 · MediumCVSS 6.0EPSS 0.4%

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

  • CVE-2026-119346
  • GHSA-f3mh-rxg3-f5g2

Description

Next.js applications that set cookies through `NextResponse` on Edge runtime routes — App Router route handlers and Pages Router Edge API routes — send an internal `x-middleware-set-cookie` header in the public response, duplicating the cookie value and its attributes. This makes HttpOnly cookies, such as session tokens, readable by JavaScript running on the same origin when an application sets a sensitive cookie on an affected response.

Text from the GitHub Advisory record.

Affected

  • nextnpm

    • from 15.0.0, up to 15.5.28
    • from 16.0.0, up to 16.4.4

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.