CVE-2026-43971
Link Header Directive Smuggling via Unescaped target/rel/Attribute Keys in cow_link:link/1
Mitigation
- Upgrade cowlib to 2.20.0 or later.
- Upgrade cowlib to 89da27ee4c241f5d649ba7d9b7f2188918af6cea or later.
- Vendor workaround: Sanitize values before passing them to cow_link:link/1: reject or strip any target value containing >, any rel value containing " or \, and any attribute key containing characters outside the HTTP token grammar. Alternatively, ensure all Link entry fields are derived exclusively from trusted, application-controlled values rather than untrusted input.
Who should check
- Anyone running ninenines cowlib >= 2.9.0, < 2.20.0
- Anyone running ninenines cowlib >= 485d58dfa91b91d98135dc95e5615f421715dae5, < 89da27ee4c241f5d649ba7d9b7f2188918af6cea
Vulnerability facts
- Affected
- ninenines cowlib >= 2.9.0, < 2.20.0; ninenines cowlib >= 485d58dfa91b91d98135dc95e5615f421715dae5, < 89da27ee4c241f5d649ba7d9b7f2188918af6cea
- Fixed in
- ninenines cowlib 2.20.0, ninenines cowlib 89da27ee4c241f5d649ba7d9b7f2188918af6cea
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- 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:N/SI:L/SA:NOpen in CVSS calculator
Show all 11 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: None
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.52% chance of exploitation in 30 days (percentile 38, 2026-11-26)
- CWE
- CWE-116
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-43971. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-43971.md Affected: ninenines cowlib >= 2.9.0, < 2.20.0; ninenines cowlib >= 485d58dfa91b91d98135dc95e5615f421715dae5, < 89da27ee4c241f5d649ba7d9b7f2188918af6cea Fixed in: ninenines cowlib 2.20.0, ninenines cowlib 89da27ee4c241f5d649ba7d9b7f2188918af6cea Steps: 1. Search this machine and project for ninenines cowlib: 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.
References
Patches
FAQ
Is CVE-2026-43971 being exploited?
There is no confirmed exploitation: CVE-2026-43971 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-43971?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-43971?
ninenines cowlib >= 2.9.0, < 2.20.0; ninenines cowlib >= 485d58dfa91b91d98135dc95e5615f421715dae5, < 89da27ee4c241f5d649ba7d9b7f2188918af6cea.
Is there a fix for CVE-2026-43971?
Yes. Fixed in ninenines cowlib 2.20.0, ninenines cowlib 89da27ee4c241f5d649ba7d9b7f2188918af6cea. Upgrade cowlib to 2.20.0 or later. Upgrade cowlib to 89da27ee4c241f5d649ba7d9b7f2188918af6cea or later. Vendor workaround: Sanitize values before passing them to cow_link:link/1: reject or strip any target value containing >, any rel value containing " or \, and any attribute key containing characters outside the HTTP token grammar. Alternatively, ensure all Link entry fields are derived exclusively from trusted, application-controlled values rather than untrusted input.
How do I check if I'm affected by CVE-2026-43971?
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.