CVE-2026-43972
MEDIUM 6.3CVSS 4.0gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection
Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.
In 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.
A 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.
This issue affects gun: from 2.0.0-pre.2 before 2.4.0.
- Published
- 8 Jun 2026
- Last modified
- 25 Nov 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Modified
- Weakness
- CWE-346
- Also known as
- EEF-CVE-2026-43972GHSA-36w4-95hv-5vwg
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-43972JSONOSV GHSA-36w4-95hv-5vwgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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 |
| CVE List | EEF | CVSS 4.0 | MEDIUM 6.3 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ninenines | guncpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.4.0 | 2.4.0 |
| CVE List | https://repo.hex.pm | guncpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:* |
>= 2.0.0-pre.2, < 2.4.0 | 2.4.0 |
| CVE List | https://github.com | ninenines/guncpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:* |
>= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, < 567863ff53802fed21c3b3f25812db7f7ae29676 | 567863ff53802fed21c3b3f25812db7f7ae29676 |
| OSV | Hex | gun | >= 2.0.0-pre.2, < 2.4.0 | 2.4.0 |
| OSV | Hex | gun | >= 2.0.0, < 2.4.0 | 2.4.0 |
References
- https://cna.erlef.org/cves/CVE-2026-43972.html · Patch, Third Party Advisory, related, third-party-advisory, WEB
- https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676 · Patch, FIX, WEB
- https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3 · related, WEB
- https://osv.dev/vulnerability/EEF-CVE-2026-43972 · Third Party Advisory, related, WEB
- https://hex.pm/packages/gun · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2026-43972 · ADVISORY
- https://github.com/ninenines/gun · PACKAGE
History
- 25 Nov 2026 20:32 UTC · CVE List: first stored (published 8 Jun 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Jun 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Jun 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 8 Jun 2026)