CVE-2026-43972: CWE-346 Origin Validation Error in ninenines gun
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.
AI Analysis
Technical Summary
The vulnerability arises because gun_http2:push_promise_frame/7 stores the :authority pseudo-header from incoming PUSH_PROMISE frames without validating that it matches the connection's origin. Later, when processing response headers for the promised stream, gun_cookies:set_cookie_header/7 uses this unvalidated authority to set cookies before any status checks or user code intervention. This allows a malicious HTTP/2 server to plant cookies for arbitrary domains in the client's shared cookie store, violating HTTP/2 protocol requirements and enabling session fixation and potential account takeover attacks. The flaw affects gun versions starting at 2.0.0 up to but not including 2.4.0.
Potential Impact
An attacker controlling or compromising an HTTP/2 server can exploit this vulnerability to inject cookies scoped to arbitrary third-party domains into a client's cookie store. This can lead to session fixation attacks against those domains and may result in account takeover if the injected cookie overrides a legitimate session token. No user interaction beyond a normal HTTP/2 request to the malicious server is required. The CVSS 4.0 base score is 6.3 (medium severity), reflecting network attack vector, low complexity, no privileges required, no user interaction, and limited impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch link is provided in the available data. Until a patch is released, users should avoid making HTTP/2 requests to untrusted or potentially compromised servers using affected gun versions (2.0.0 before 2.4.0). Monitor vendor communications for updates and apply official fixes once available.
CVE-2026-43972: CWE-346 Origin Validation Error in ninenines gun
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 before 2.4.0.
CVSS v4.0
Score 6.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because gun_http2:push_promise_frame/7 stores the :authority pseudo-header from incoming PUSH_PROMISE frames without validating that it matches the connection's origin. Later, when processing response headers for the promised stream, gun_cookies:set_cookie_header/7 uses this unvalidated authority to set cookies before any status checks or user code intervention. This allows a malicious HTTP/2 server to plant cookies for arbitrary domains in the client's shared cookie store, violating HTTP/2 protocol requirements and enabling session fixation and potential account takeover attacks. The flaw affects gun versions starting at 2.0.0 up to but not including 2.4.0.
Potential Impact
An attacker controlling or compromising an HTTP/2 server can exploit this vulnerability to inject cookies scoped to arbitrary third-party domains into a client's cookie store. This can lead to session fixation attacks against those domains and may result in account takeover if the injected cookie overrides a legitimate session token. No user interaction beyond a normal HTTP/2 request to the malicious server is required. The CVSS 4.0 base score is 6.3 (medium severity), reflecting network attack vector, low complexity, no privileges required, no user interaction, and limited impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch link is provided in the available data. Until a patch is released, users should avoid making HTTP/2 requests to untrusted or potentially compromised servers using affected gun versions (2.0.0 before 2.4.0). Monitor vendor communications for updates and apply official fixes once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-04T18:23:25.574Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a26d2d1e29bf47b50f21652
Added to database: 06/08/2026, 14:33:53 UTC
Last enriched: 06/08/2026, 14:49:12 UTC
Last updated: 07/19/2026, 05:26:46 UTC
Views: 56
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.