MODERATE 6.0

CVE-2026-119346

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

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.mvnpm » nextvia npm next
>= 15.0.0, < 15.5.29>= 16.0.0, < 16.4.5
15.5.29, 16.4.5

Blast radius

1affected artifacts
66affected versions
0dependent artifacts (est.)
0dependent versions

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) . See all on OSV