# CVE-2026-43971: Link Header Directive Smuggling via Unescaped target/rel/Attribute Keys in cow\_link:link/1

> 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:N/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: None; 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.52% (percentile 38, 2026-11-26)
- **CWE:** CWE-116
- **Published:** 2026-08-18T09:01:53.199Z
- **Modified:** 2026-10-22T22:10:00.250Z

## Who should check

- Anyone running ninenines cowlib \>= 2.9.0, \< 2.20.0
- Anyone running ninenines cowlib \>= 485d58dfa91b91d98135dc95e5615f421715dae5, \< 89da27ee4c241f5d649ba7d9b7f2188918af6cea

## 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

- ninenines cowlib: \>= 2.9.0, \< 2.20.0 (cvelist)
- ninenines cowlib: \>= 485d58dfa91b91d98135dc95e5615f421715dae5, \< 89da27ee4c241f5d649ba7d9b7f2188918af6cea (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://github.com/ninenines/cowlib/commit/485d58dfa91b91d98135dc95e5615f421715dae5>
- patch: <https://github.com/ninenines/cowlib/commit/89da27ee4c241f5d649ba7d9b7f2188918af6cea>
- other: <https://cna.erlef.org/cves/CVE-2026-43971.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-43971>

## 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-43971>

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