Skip to main content

ninenines gun CVE-2026-43972

| EUVDEUVD-2026-35073 MEDIUM
Origin Validation Error (CWE-346)
2026-06-08 EEF GHSA-36w4-95hv-5vwg
6.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Connect gun client to attacker-controlled HTTP/2 server
  2. Delivery
    Send PUSH_PROMISE frame with spoofed :authority targeting victim domain
  3. Exploit
    gun_http2 stores unvalidated authority in promised stream record
  4. Install
    Promised stream headers trigger gun_cookies:set_cookie_header with spoofed authority
  5. C2
    Victim-domain session cookie planted in client cookie store
  6. Execute
    Client sends injected cookie on subsequent requests to victim domain
  7. Impact
    Session 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gun 2.0.0 <2.4.0
gun 871989eef53663285c165fdfb83a5918ebe00d41 <567863ff53802fed21c3b3f25812db7f7ae29676

Affected Packages

euvd gun fix: 2.4.0

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

Vendor (EEF) PRIMARY 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

Primary rating from Vendor (EEF) · only source for this CVE.

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Jun 08, 2026 - 15:37 NVD
6.3 (MEDIUM)
CVE Published
Jun 08, 2026 - 14:12 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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

EPSS Score
0.0%
Top 95% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy