CVE-2026-119346: Next HttpOnly Cookie Exposure Through Internal Vulnerability

MODERATE
Advisory Identifier: GHSA-f3mh-rxg3-f5g2
CWE-200 CWE-201
Published
Advisory Summary

CVE-2026-119346 is a MODERATE httponly cookie exposure through internal vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Next libraries in the npm ecosystem. The issue involves httponly cookie exposure through internal response header on next.js edge runtime routes. Remediation is available by upgrading affected packages to version 15.5.29, 16.4.5.

CVE-2026-119346 at a Glance

CVE Identifier CVE-2026-119346
GHSA Identifier GHSA-f3mh-rxg3-f5g2
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Next
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-119346

To remediate this vulnerability, upgrade all affected Next dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

next fixed: 15.5.29
npm install next@15.5.29
next fixed: 16.4.5
npm install next@16.4.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls next

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-119346, inspect your project dependencies using npm:

npm ls next

Analyze the terminal output to locate any version of Next in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 15.5.29), your application is affected.

Note: The npm ls next command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Next, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-119346 Affected Next Versions

2 component(s)
Fixed Versions:
15.5.2916.4.5
Product / Package Ecosystem Affected Versions Fixed Version
next
npm
≥ 15.0.0
< 15.5.29
15.5.29
next
npm
≥ 16.0.0
< 16.4.5
16.4.5

References

Frequently Asked Questions

What is CVE-2026-119346?
CVE-2026-119346 is a security vulnerability in Next involving HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Next versions are affected?
Affected versions include releases prior to 15.5.29, 16.4.5 across affected packages: next.
What version fixes CVE-2026-119346?
Upgrading to 15.5.29, 16.4.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is next affected?
Yes, next is affected in releases prior to 15.5.29, 16.4.5. Upgrade your dependency to 15.5.29, 16.4.5 or later.
What CWE is associated with CVE-2026-119346?
CVE-2026-119346 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2026-119346?
Run the dependency tree command: 'npm ls next'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f3mh-rxg3-f5g2",
  "modified" : "2026-11-19T22:23:21Z",
  "published" : "2026-11-19T22:23:21Z",
  "aliases" : [ "CVE-2026-119346" ],
  "summary" : "Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.0.0"
      }, {
        "fixed" : "15.5.29"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 15.5.28"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.0"
      }, {
        "fixed" : "16.4.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 16.4.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/security/advisories/GHSA-f3mh-rxg3-f5g2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-119346"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/commit/809be725f033ec7aa4c658ba2b7a084cb039d1f2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/commit/9fc04bd869ded4900bed7d069832aa2c5f56fa29"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vercel/next.js"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/releases/tag/v15.5.29"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/releases/tag/v16.4.5"
  }, {
    "type" : "WEB",
    "url" : "https://nextjs.org/blog/november-2026-security-release"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-201" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T22:23:21Z",
    "nvd_published_at" : "2026-11-16T19:17:26Z"
  }
}