GHSA-f3mh-rxg3-f5g2

    Dashboard / Vulnerabilities / GHSA-f3mh-rxg3-f5g2

    GHSA-f3mh-rxg3-f5g2

    Published: 19 Nov 2026Last Modified: 19 Nov 2026

    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.

    Affected packages

    Package

    Name: next

    Purl: pkg:npm/next

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 15.0.0
    Fixed -15.5.29

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High