{"id":"CVE-2026-43972","published":"2026-06-08T14:12:38Z","modified":"2026-11-20T06:39:37Z","title":"gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection","vendor":"ninenines","product":"gun","tier":"tail","description":{"text":"Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\n\nIn gun_http2:push_promise_frame/7, the :authority pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection's origin. When gun_http2:headers_frame/9 later processes the response headers for the promised stream, it calls gun_cookies:set_cookie_header/7 with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 §10.6 / RFC 9113 §8.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\n\nA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client's shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\n\nThis issue affects gun: from 2.0.0-pre.2 before 2.4.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00174,"percentile":0.07008,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-43972.html","tags":["related","third-party-advisory"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43972","tags":["related"]},{"url":"https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3","tags":["related"]},{"url":"https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676","tags":["patch"]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":1.4},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"ninenines","affectedVersions":[{"vendor":"ninenines","product":"gun","versions":[">= 2.0.0-pre.2, < 2.4.0"]},{"vendor":"ninenines","product":"gun","versions":[">= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, < 567863ff53802fed21c3b3f25812db7f7ae29676"]}],"capec":[{"id":"CAPEC-61","name":"Session Fixation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-08T15:42:59.352280Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"gun","vulnerableRanges":[">=2.0.0, <2.4.0"],"patched":["2.4.0"],"from":["GHSA-36w4-95hv-5vwg"],"provenance":"source"}],"summary":{"text":"The gun HTTP/2 client library (the gun_http2 module, versions 2.0.0 before 2.4.0) does not check that the :authority pseudo-header of an incoming PUSH_PROMISE frame matches the connection's origin, so the server-supplied authority is later used to set cookies. An attacker who controls or compromises an HTTP/2 server that a client connects to can plant cookies scoped to arbitrary third-party domains, with no authentication and no user interaction beyond the client making a normal request to that server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:33Z"},"euvd":{"id":"EUVD-2026-35073","exploited":false,"provenance":"source"}}