CVE-2026-43972
gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection
Mitigation
- Upgrade gun to 2.4.0 or later.
- Upgrade gun to 567863ff53802fed21c3b3f25812db7f7ae29676 or later.
Who should check
- Anyone running ninenines gun >= 2.0.0-pre.2, < 2.4.0
- Anyone running ninenines gun >= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, < 567863ff53802fed21c3b3f25812db7f7ae29676
Vulnerability facts
- Affected
- ninenines gun >= 2.0.0-pre.2, < 2.4.0; ninenines gun >= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, < 567863ff53802fed21c3b3f25812db7f7ae29676
- Fixed in
- ninenines gun 2.4.0, ninenines gun 567863ff53802fed21c3b3f25812db7f7ae29676
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.21% chance of exploitation in 30 days (percentile 6, 2026-11-26)
- CWE
- CWE-346
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-43972. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-43972.md Affected: ninenines gun >= 2.0.0-pre.2, < 2.4.0; ninenines gun >= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, < 567863ff53802fed21c3b3f25812db7f7ae29676 Fixed in: ninenines gun 2.4.0, ninenines gun 567863ff53802fed21c3b3f25812db7f7ae29676 Steps: 1. Search this machine and project for ninenines gun: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-43972 being exploited?
There is no confirmed exploitation: CVE-2026-43972 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-43972?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-43972?
ninenines gun >= 2.0.0-pre.2, < 2.4.0; ninenines gun >= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, < 567863ff53802fed21c3b3f25812db7f7ae29676.
Is there a fix for CVE-2026-43972?
Yes. Fixed in ninenines gun 2.4.0, ninenines gun 567863ff53802fed21c3b3f25812db7f7ae29676. Upgrade gun to 2.4.0 or later. Upgrade gun to 567863ff53802fed21c3b3f25812db7f7ae29676 or later.
How do I check if I'm affected by CVE-2026-43972?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.