CVE-2026-34226: Leaky Cookie Origin In Fetch

A web client or mock implementation is querying a cookie container using the current page's URL (e.g., origin URL from `location.href`) instead of the request's target URL. When handling requests, this will inadvertently attach the parent origin's cookies to the external request, leaking sensitive session data to third parties.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-34226-leaky-cookie-origin-in-fetch --engine opengrep

Description

A web client or mock implementation is querying a cookie container using the current page's URL (e.g., origin URL from `location.href`) instead of the request's target URL. When handling requests, this will inadvertently attach the parent origin's cookies to the external request, leaking sensitive session data to third parties.