# CVE-2026-43972: gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection

- Severity: Medium 6.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-06-08T14:12:38.780Z
- Modified: 2026-11-25T17:23:07.550Z
- Also known as: GHSA-36w4-95hv-5vwg, EEF-CVE-2026-43972
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## Description

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.

(As written by CVE List.)

## Affected

- gun: from 2.0.0-pre.2 before 2.4.0
- ninenines/gun: from 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3 before 567863ff53802fed21c3b3f25812db7f7ae29676
- gun (Hex): from 2.0.0 before 2.4.0; from 2.0.0-pre.2 before 2.4.0
- https://github.com/ninenines/gun: from 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3 before 567863ff53802fed21c3b3f25812db7f7ae29676
- ninenines gun: from 2.0.0 before 2.4.0

## Every score

- EEF: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- Erlang Ecosystem Foundation: 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: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://cna.erlef.org/cves/CVE-2026-43972.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-43972> (related, third-party-advisory, web)
- <https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3> (related, web)
- <https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-43972> (advisory)
- <https://github.com/ninenines/gun> (package)
- <https://hex.pm/packages/gun> (package)

## Sources

- CVE List: [CVE-2026-43972](https://www.cve.org/CVERecord?id=CVE-2026-43972), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-36w4-95hv-5vwg](https://github.com/advisories/GHSA-36w4-95hv-5vwg), CC-BY-4.0, modified 2026-07-29
- Erlang Ecosystem Foundation: [EEF-CVE-2026-43972](https://osv.dev/vulnerability/EEF-CVE-2026-43972), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-43972](https://nvd.nist.gov/vuln/detail/CVE-2026-43972), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-43972 · Whole record: https://cve.day/CVE-2026-43972.json · Rebuilt by cve.day 2026-11-25T22:59:23.969Z
