{
  "id": "CVE-2026-43972",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-43972",
  "published_at": "2026-06-08T14:12:38.78Z",
  "title": "gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection",
  "vendor": "ninenines",
  "product": "gun",
  "cvss": {
    "score": 7.2,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\n\nIn 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.\n\nA 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.\n\nThis issue affects gun: from 2.0.0-pre.2 before 2.4.0.",
  "cwe": "CWE-346",
  "cpes": [
    "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.3,
    "nvd": 7.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ninenines",
        "product": "gun",
        "ranges": [
          "\u003e= 2.0.0-pre.2, \u003c 2.4.0"
        ],
        "fixed_in": [
          "2.4.0"
        ]
      },
      {
        "vendor": "ninenines",
        "product": "gun",
        "ranges": [
          "\u003e= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, \u003c 567863ff53802fed21c3b3f25812db7f7ae29676"
        ],
        "fixed_in": [
          "567863ff53802fed21c3b3f25812db7f7ae29676"
        ]
      }
    ],
    "upgrade": [
      "Upgrade gun to 2.4.0 or later.",
      "Upgrade gun to 567863ff53802fed21c3b3f25812db7f7ae29676 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
