GHSA-f3mh-rxg3-f5g2

Suggest an improvement
Source
https://github.com/advisories/GHSA-f3mh-rxg3-f5g2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-f3mh-rxg3-f5g2/GHSA-f3mh-rxg3-f5g2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f3mh-rxg3-f5g2
Aliases
Downstream
CGA (6)
Published
2026-11-19T22:23:21Z
Modified
2026-11-19T22:45:06Z
Severity
  • 6.0 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cwe_ids": [
        "CWE-200",
        "CWE-201"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-19T22:23:21Z",
    "nvd_published_at": "2026-11-16T19:17:26Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
15.0.0
Fixed
15.5.29

Database specific

last_known_affected_version_range
"<= 15.5.28"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-f3mh-rxg3-f5g2/GHSA-f3mh-rxg3-f5g2.json"

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
16.0.0
Fixed
16.4.5

Database specific

last_known_affected_version_range
"<= 16.4.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-f3mh-rxg3-f5g2/GHSA-f3mh-rxg3-f5g2.json"