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 package | Versions | Reported by |
|---|---|---|
| vercel next.js | >= 15.0.0, < 15.5.29, >= 16.0.0, < 16.4.5 | CVE List |
| next (npm) | from 15.0.0 before 15.5.29, from 16.0.0 before 16.4.5 | GitHub Advisory Database |
All scores
| GitHub_M | 6.0medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS: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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-119346 changed 2026-11-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f3mh-rxg3-f5g2 changed 2026-11-19 | CC-BY-4.0 |
| NVD | CVE-2026-119346 changed 2026-11-17 | Public domain |