CyberSecBulletin
CVE-2026-43972NVD status: Analyzed

gun: Origin Validation Error

CVE-2026-43972 is a high-severity origin validation error vulnerability in gun from Ninenines, with a CVSS 3.1 base score of 7.2 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 2.4.0, 567863ff53802fed21c3b3f25812db7f7ae29676 as the first without the flaw, so updating gun to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.17% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update gun to 2.4.0 or 567863ff53802fed21c3b3f25812db7f7ae29676, whichever matches your release line, or a later version.
  2. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
Nineninesgun2.0.0 up to, but not including, 2.4.0; 871989eef53663285c165fdfb83a5918ebe00d41 up to, but not including, 567863ff53802fed21c3b3f25812db7f7ae296762.4.0, 567863ff53802fed21c3b3f25812db7f7ae29676

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
ChangedThe attack can reach beyond the vulnerable component into other systems.
Confidentiality
LowSome restricted data can be read.
Integrity
LowLimited modification of data is possible.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 4.06.3MediumCNA
CVSS 3.17.2HighNVD

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

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Origin Validation Error

The product does not properly verify that the source of data or communication is valid.

More Origin Validation Error vulnerabilities (CWE-346)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in gun

All gun vulnerabilities

Recent Origin Validation Error vulnerabilities

Spotted an error? Tell us.