Intel

AIKIDO-2026-187031

next is vulnerable to Information Disclosure

CVE-2026-119346Published 6 days ago
November 4, 2026

60

CVE Score

Medium

Information Disclosure

Are you affected? Scan for Free

TL;DR

Next.js applications that set cookies through NextResponse on Edge runtime routes (App Router route handlers and Pages Router Edge API routes) include an internal x-middleware-set-cookie header in the public response. This header duplicates the cookie value and its attributes, so HttpOnly cookies such as session tokens become readable by JavaScript running on the same origin, defeating the protection HttpOnly is meant to provide.

How do I fix this?

Upgrade the next library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application sets a sensitive cookie (for example a session token) with NextResponse on an Edge runtime route, either in an App Router route handler or a Pages Router Edge API route.

Package

Versions

13.0.0 - 15.5.28

Fixed in 15.5.29

16.0.0 - 16.4.4

Fixed in 16.4.5

Background info

next is vulnerable to Information Disclosure in versions 13.0.0 - 15.5.28 and 16.0.0 - 16.4.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea