# CVE-2026-43972: gun HTTP/2 PUSH\_PROMISE authority not validated against connection origin allows cross-origin cookie injection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-346
- **Published:** 2026-06-08T14:12:38.780Z
- **Modified:** 2026-11-20T07:17:15.960Z

## Who should check

- Anyone running ninenines gun \>= 2.0.0-pre.2, \< 2.4.0
- Anyone running ninenines gun \>= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, \< 567863ff53802fed21c3b3f25812db7f7ae29676

## 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-pre.2 before 2.4.0.

## Affected and fixed versions

- ninenines gun: \>= 2.0.0-pre.2, \< 2.4.0 (cvelist)
- ninenines gun: \>= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, \< 567863ff53802fed21c3b3f25812db7f7ae29676 (cvelist)

## Mitigation

- Upgrade gun to 2.4.0 or later.
- Upgrade gun to 567863ff53802fed21c3b3f25812db7f7ae29676 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-43972. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43972.md
Affected: ninenines gun >= 2.0.0-pre.2, < 2.4.0; ninenines gun >= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, < 567863ff53802fed21c3b3f25812db7f7ae29676
Fixed in: ninenines gun 2.4.0, ninenines gun 567863ff53802fed21c3b3f25812db7f7ae29676

Steps:
1. Search this machine and project for ninenines gun: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-43972 being exploited?

There is no confirmed exploitation: CVE-2026-43972 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-43972?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-43972?

ninenines gun \>= 2.0.0-pre.2, \< 2.4.0; ninenines gun \>= 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3, \< 567863ff53802fed21c3b3f25812db7f7ae29676.

### Is there a fix for CVE-2026-43972?

Yes. Fixed in ninenines gun 2.4.0, ninenines gun 567863ff53802fed21c3b3f25812db7f7ae29676. Upgrade gun to 2.4.0 or later. Upgrade gun to 567863ff53802fed21c3b3f25812db7f7ae29676 or later.

### How do I check if I'm affected by CVE-2026-43972?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://cna.erlef.org/cves/CVE-2026-43972.html>
- patch: <https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3>
- patch: <https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-43972>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43972>

HTML: <https://flawdb.com/CVE-2026-43972> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43972>
