CVE catalog

CVE-2026-43971

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 inte

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.52% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianerlang-cowlibsid2.21.0-1fixed
Debianerlang-cowlibforky2.21.0-1fixed
Debianerlang-cowlibtrixie1.3.0-3not affected
Debianerlang-cowlibbookworm1.3.0-3not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianerlang-cowlibsourcesid2.20.0-1not yet assignedNot reported[1145197]
Debianerlang-cowlibsourceforky2.20.0-1not yet assignedNot reported[1145197]
Debianerlang-cowlibsourcetrixieNot affectedunimportantNot reported[1145197]
Debianerlang-cowlibsourcebookwormNot affectedunimportantNot reported[1145197]

[Debian bug #1145197]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [erlang-cowlib]Not affected
    Details (2)
    • 1.3.0-3 · arm64 · bookworm

      Not affected

      nvd · erlang-cowlib · debian · bookworm

    • 1.3.0-3+b1 · amd64 · bookworm

      Not affected

      nvd · erlang-cowlib · debian · bookworm

Observed:

References