{"id":"CVE-2026-43972","aliases":["EEF-CVE-2026-43972","GHSA-36w4-95hv-5vwg"],"title":"gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection","titleSource":"EEF","descriptionSource":"OSV","description":"## Summary\n\nOrigin 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.\n\n## Configurations\n\nThe vulnerability is exploitable only when gun is configured with a `cookie_store` and connects to an HTTP/2 server with server push enabled.","severity":"medium","score":6.3,"published":"2026-06-08T14:12:38.780Z","modified":"2026-11-25T17:23:07.550Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"gun","sources":[{"name":"OSV · EEF-CVE-2026-43972","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43972"}],"ranges":[{"events":[{"introduced":"2.0.0-pre.2"},{"fixed":"2.4.0"}],"type":"SEMVER"}],"versions":["2.0.0","2.0.0-rc.1","2.0.0-rc.2","2.0.1","2.1.0","2.2.0","2.3.0"],"fixed":["2.4.0"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3"},{"fixed":"567863ff53802fed21c3b3f25812db7f7ae29676"}],"type":"GIT","repo":"https://github.com/ninenines/gun"}],"versions":["2.3.0","2.2.0","2.1.0","2.0.1","2.0.0","2.0.0-rc.2","2.0.0-rc.1","2.0.0-pre.2"]}],"references":["https://cna.erlef.org/cves/CVE-2026-43972.html","https://osv.dev/vulnerability/EEF-CVE-2026-43972","https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3","https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676","https://hex.pm/packages/gun"],"sources":[{"name":"CVE","id":"CVE-2026-43972","modified":"2026-11-20T06:39:37.773Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-43972"},{"name":"OSV","id":"EEF-CVE-2026-43972","modified":"2026-11-25T17:23:07.550676861Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43972"}],"assessments":[{"source":"EEF","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","score":6.3},{"source":"OSV","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","score":6.3}],"cve":{"records":[{"id":"CVE-2026-43972","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-05-04T18:23:25.574Z","published":"2026-06-08T14:12:38.780Z","modified":"2026-11-20T06:39:37.773Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-20T06:39:37.773Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-06-08T15:43:06.577Z"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-43972.html","tags":["related","third-party-advisory"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43972","tags":["related"],"source":"EEF"},{"url":"https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3","tags":["related"],"source":"EEF"},{"url":"https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676","tags":["patch"],"source":"EEF"}],"weaknesses":[{"id":"CWE-346","description":"CWE-346 Origin Validation Error","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*","versionEndExcluding":"2.4.0","versionStartIncluding":"2.0.0-pre.2","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-06-08T15:42:59.352280Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"ninenines","name":"gun","platforms":[],"versions":[{"version":"2.0.0-pre.2","status":"affected","lessThan":"2.4.0","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/gun","packageIdentity":{"ecosystem":"Hex","name":"gun"},"cpes":["cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-43972"},{"vendor":"ninenines","name":"gun","platforms":[],"versions":[{"version":"87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3","status":"affected","lessThan":"567863ff53802fed21c3b3f25812db7f7ae29676","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ninenines/gun","cpes":["cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-43972"}],"remediation":[],"observedAt":"2026-11-25T18:38:18.705Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T23:15:32.077Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-20T07:15:30.699Z","attemptedAt":"2026-11-20T07:15:30.699Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-20T07:15:30.699Z","attemptedAt":"2026-11-20T07:15:30.699Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-20T07:15:30.699Z","attemptedAt":"2026-11-20T07:15:30.699Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-20T07:15:30.699Z","attemptedAt":"2026-11-20T07:15:30.699Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-43972","url":"https://www.first.org/epss/","probability":0.00168,"percentile":0.06208,"date":"2026-11-19","checkedAt":"2026-11-20T07:15:30.699Z"},{"source":"ENISA EUVD","id":"EUVD-2026-35073","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-35073","modified":"Jun 8, 2026, 4:34:45 PM","score":6.3,"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","checkedAt":"2026-11-20T07:15:30.699Z"},{"source":"GitHub Advisory Database","id":"GHSA-36w4-95hv-5vwg","url":"https://github.com/advisories/GHSA-36w4-95hv-5vwg","modified":"2026-07-29T15:45:19Z","checkedAt":"2026-11-20T07:15:30.699Z"},{"source":"NVD","id":"CVE-2026-43972","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43972","modified":"2026-08-18T15:42:54.483","score":6.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-20T07:15:30.699Z"},{"source":"NVD","id":"CVE-2026-43972","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43972","modified":"2026-08-18T15:42:54.483","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","checkedAt":"2026-11-20T07:15:30.699Z"}],"aiSummary":{"text":"The gun HTTP/2 library (versions 2.0.0-pre.2 before 2.4.0) has an origin validation error vulnerability, allowing a malicious server to inject cookies for arbitrary domains. This can enable session fixation attacks. The vulnerability requires an attacker-controlled HTTP/2 server with server push enabled.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-20T07:36:23.449Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-43972"},{"name":"OSV","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43972"}]}}