p PatchFirst

CVE-2026-119346

CVE-2026-119346 · Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes

CVSS 6.0 · Medium · EPSS 0.5% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

npm ls next

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: node

Affected products and versions

  • next.js

    Versions
    • >= 15.0.0, < 15.5.29: Affected
    • >= 16.0.0, < 16.4.5: Affected

    No fix published

  • next npm

    Affected ranges
    • SEMVER: ≥ 15.0.0, < 15.5.29

    Update to 15.5.29

  • next npm

    Affected ranges
    • SEMVER: ≥ 16.0.0, < 16.4.5

    Update to 16.4.5

Original sources

Check your server →