Security mailing lists by PureSourceCode

CVE-2026-43972

MEDIUM 6.3CVSS 4.0

gun 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ninenines gun
cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
>= 2.0.0, < 2.4.0 2.4.0
CVE List https://repo.hex.pm gun
cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
>= 2.0.0-pre.2, < 2.4.0 2.4.0
CVE List https://github.com ninenines/gun
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.