CVE-2026-43971 Link Header Directive Smuggling via Unescaped target/rel/Attribute Keys in cow_link:link/1
Attackers can smuggle Link header directives to force victim browsers to connect to attacker-controlled origins via unescaped characters in cowlib.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-43971?
CVE-2026-43971 is a medium-severity vulnerability in ninenines cowlib, published on 18 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Improper Encoding or Escaping of Output vulnerability in ninenines cowlib allows Link header directive smuggling via unescaped special characters in cow_link:link/1.
cow_link:do_link/1 in cowlib interpolates the target URI, rel value, and attribute keys directly into the serialized Link: header value without escaping or token-grammar validation. A > byte in target prematurely closes the URI slot, allowing an attacker to append additional link entries with attacker-chosen rel directives. A " or \ in rel escapes the quoted string and opens new parameters. Any byte — including whitespace, =, and " — in an attribute key is emitted verbatim. Because browsers act on Link: directives such as rel="preconnect", rel="preload", and rel="prerender", an attacker who can influence these fields in an application that round-trips parsed Link headers through cow_link:link/1 can force victim browsers to make out-of-band connections to attacker-controlled origins.
This issue affects cowlib: from 2.9.0 before 2.20.0.
Weakness: CWE-116
Which versions are affected by CVE-2026-43971?
1 open source package ship an affected version, including cowlib.
| Package | Affected | Fixed in |
|---|---|---|
cowlib Hex | From 2.9.0 | 2.20.0 |
Linux distribution packages (1)
rabbitmq-server4.3 Red Hat:hummingbird:1 | All versions | 0:4.3.5-1.1.hum1 |
How do I fix CVE-2026-43971?
Upgrade cowlib to 2.20.0 or later.
Is CVE-2026-43971 being exploited?
There is no known exploitation of CVE-2026-43971 in the wild and no public exploit code.
Sources
Also known as AZL-96873, DEBIAN-CVE-2026-43971, EEF-CVE-2026-43971, GHSA-gg23-fwhr-prjh, RHSA-2026:66210, UBUNTU-CVE-2026-43971.