CVE-2026-119346
JSON

6.0medium

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

Severity
6.0medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-f3mh-rxg3-f5g2

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.

Affected

Product or packageVersionsReported by
vercel next.js>= 15.0.0, < 15.5.29, >= 16.0.0, < 16.4.5CVE List
next (npm)from 15.0.0 before 15.5.29, from 16.0.0 before 16.4.5GitHub Advisory Database

All scores

GitHub_M6.0medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Classification

CWE-200CWE-201

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-119346 changed 2026-11-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-f3mh-rxg3-f5g2 changed 2026-11-19CC-BY-4.0
NVDCVE-2026-119346 changed 2026-11-17Public domain