← 漏洞与更新

中危漏洞公告JavaScript / Node.jsNext.js

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

受影响

软件包受影响版本修复版本
npm:next>= 15.0.0, <= 15.5.2815.5.29
npm:next>= 16.0.0, <= 16.4.416.4.5

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.

在 GitHub Advisory Database 阅读

2026/11/20 07:23,GitHub Advisory Database 发布了“Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:JavaScript / Node.js、Next.js。CVE:CVE-2026-119346。