Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconConnect gun client to attacker-controlled HTTP/2 server
-
DeliverySend PUSH_PROMISE frame with spoofed :authority targeting victim domain
-
Exploitgun_http2 stores unvalidated authority in promised stream record
-
InstallPromised stream headers trigger gun_cookies:set_cookie_header with spoofed authority
-
C2Victim-domain session cookie planted in client cookie store
-
ExecuteClient sends injected cookie on subsequent requests to victim domain
-
ImpactSession fixation or account takeover at victim domain
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | The client application must use gun 2.0.0-2.3.x with HTTP/2 negotiated (the default when the server advertises h2 via ALPN) and must have gun_cookies enabled as the cookie store. Exploitation requires the attacker to control or have compromised an HTTP/2 server to which the gun client initiates a connection - this is a server-position prerequisite, not a network-interception attack. The CVSS AT:P modifier confirms this positional requirement. Exploitation is bounded to cookie store manipulation against third-party domains: it grants no code execution, no file access, and no direct read of existing cookies from the client host. Clients that exclusively use HTTP/1.1 (protocols => [http]), that have server push disabled via SETTINGS_ENABLE_PUSH=0, or that do not use gun_cookies are not exploitable through this path. |
| Impact | The CVSS 4.0 score of 6.3 (Medium) reflects a Network attack vector, Low complexity, No Privileges Required, and No User Interaction - however, the AT:P (Attack Target Present) modifier is significant: it confirms the exploit requires the client to connect to an attacker-controlled or compromised HTTP/2 server, which is a non-trivial prerequisite. This is not a passive network-position exploit. The downstream impact is constrained: VC:N/VI:L/SC:L/SI:L with no availability impact, meaning the direct effect is limited to cookie store manipulation enabling session fixation or account takeover at a third-party domain rather than direct system compromise. The 'RCE' tag from source intelligence conflicts with all other available signals - the CVSS vector, the CWE-346 classification, and the vulnerability description uniformly describe cookie injection, not code execution; treat that tag as erroneous. EPSS data was not provided in the source intelligence, so exploitation probability cannot be quantified. The vulnerability is not in CISA KEV and no public exploit code has been identified. Real-world risk is highest for Erlang applications that use gun over HTTP/2 to interact with semi-trusted or third-party servers, such as OAuth clients, API aggregators, or web scrapers, where an adversary could operate or compromise one server in the request graph. |
| Exploit ScenarioDerived | An adversary operating or having compromised an HTTP/2 server sends a PUSH_PROMISE frame to a connecting gun client with the :authority pseudo-header set to a high-value third-party domain (e.g., auth.target-bank.com) rather than the server's own authority. The unpatched gun client stores the promise without validation, and when the promised stream's headers are processed, gun_cookies:set_cookie_header/7 writes a session cookie scoped to auth.target-bank.com into the shared cookie jar. On the client's next legitimate authenticated request to that domain, the injected cookie is transmitted, fixing the session to an attacker-known token and potentially displacing the user's real session cookie. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Cross-origin cookie injection in ninenines gun (versions 2.0.0 through 2.3.x) allows a malicious or compromised HTTP/2 server to plant cookies scoped to arbitrary third-party domains into the client's shared cookie store. The gun_http2 module fails to validate the :authority pseudo-header in incoming PUSH_PROMISE frames before passing the server-supplied value to the cookie-setting path, violating RFC 7540 §10.6 and RFC 9113 §8.4. This enables session fixation attacks against third-party domains and may lead to account takeover if planted cookies override legitimate session tokens; no public exploit identified at time of analysis. Note: the 'RCE' tag present in source intelligence is not supported by any available data and appears to be erroneous metadata.
RemediationAI
The primary fix is upgrading to gun 2.4.0 or later, which incorporates commit 567863ff53802fed21c3b3f25812db7f7ae29676, adding authority validation that rejects mismatched PUSH_PROMISE frames with RST_STREAM PROTOCOL_ERROR. The vendor advisory is at https://cna.erlef.org/cves/CVE-2026-43972.html. If an immediate upgrade is not feasible, the most effective compensating control is to force gun to use HTTP/1.1 by setting protocols => [http] in the gun:open/3 options map, which completely bypasses the vulnerable PUSH_PROMISE code path; the trade-off is the loss of HTTP/2 multiplexing and push performance. Alternatively, server push can be disabled at the HTTP/2 SETTINGS level by sending SETTINGS_ENABLE_PUSH=0 at connection open, though this depends on gun exposing that configuration in the version in use. Applications that were running affected versions against untrusted servers should audit their cookie stores for unexpected third-party domain entries as a post-incident measure.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
gun is an Erlang HTTP/1.1, HTTP/2, and WebSocket client library maintained by ninenines. The affected module, gun_http2.erl, implements the HTTP/2 framing layer. HTTP/2 PUSH_PROMISE frames allow servers to proactively push resources to clients, but RFC 7540 §10.6 and RFC 9113 §8.4 mandate that clients MUST treat as a protocol error any push for a resource the server is not authoritative for. The root cause is CWE-346 (Origin Validation Error): in push_promise_frame/7, the :authority pseudo-header extracted from the PUSH_PROMISE frame was stored verbatim into the promised stream record without verifying it matches the established connection's scheme and authority. This unvalidated value was then passed downstream to gun_cookies:set_cookie_header/7, which set cookies scoped to the attacker-supplied authority rather than the actual connection origin. The fix (commit 567863ff) adds an explicit comparison of PromisedScheme and PromisedAuthority against the current stream's own Scheme and Authority; a mismatch triggers RST_STREAM with PROTOCOL_ERROR, and the new test push_promise_invalid_authority confirms this path. Affected CPE: cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:* for versions 2.0.0 through 2.3.x.
Know when Gun gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
Lifecycle Timeline
2DescriptionCVE.org
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 before 2.4.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Memory exhaustion denial of service in Ninenines Gun (Erlang HTTP client) versions 1.0.0 through 2.3.x allows a maliciou
Denial-of-service in the Erlang HTTP client library Ninenines gun (versions 2.0.0 through 2.3.x) lets a malicious or com
EUVD-2026-35073
GHSA-36w4-95hv-5vwg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB