Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| npm:next | >= 15.0.0, <= 15.5.28 | 15.5.29 |
| npm:next | >= 16.0.0, <= 16.4.4 | 16.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.
この脆弱性の VulnPulse の解説Next.js 16.4.5 と 15.5.29 で 7 件を修正: キャッシュが別のテナントや利用者の内容を返す不具合が中心
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。