{"id":"EEF-CVE-2026-43971","aliases":["CVE-2026-43971"],"title":"Link Header Directive Smuggling via Unescaped target/rel/Attribute Keys in cow_link:link/1","titleSource":"OSV","descriptionSource":"OSV","description":"## Summary\n\nImproper Encoding or Escaping of Output vulnerability in ninenines cowlib allows Link header directive smuggling via unescaped special characters in `cow_link:link/1`.\n\n`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.\n\nThis issue affects cowlib: from 2.9.0 before 2.20.0.\n\n## Workarounds\n\nSanitize 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.\n\n## Configurations\n\nThe application must pass values that originate from, or can be influenced by, untrusted input into `cow_link:link/1` — specifically the target URI, rel value, or attribute keys. Applications that construct Link entries exclusively from trusted, application-controlled values are not affected.","severity":"medium","score":6.3,"published":"2026-08-18T09:01:53.199Z","modified":"2026-11-25T17:23:12.597Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"cowlib","sources":[{"name":"OSV · EEF-CVE-2026-43971","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43971"}],"ranges":[{"events":[{"introduced":"2.9.0"},{"fixed":"2.20.0"}],"type":"SEMVER"}],"versions":["2.10.0","2.10.1","2.11.0","2.12.0","2.12.1","2.13.0","2.14.0","2.15.0","2.16.0","2.16.1","2.17.0","2.17.1","2.18.0","2.19.0","2.9.0","2.9.1"],"fixed":["2.20.0"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"485d58dfa91b91d98135dc95e5615f421715dae5"},{"fixed":"89da27ee4c241f5d649ba7d9b7f2188918af6cea"}],"type":"GIT","repo":"https://github.com/ninenines/cowlib"}],"versions":["2.19.0","2.18.0","2.17.1","2.17.0","2.16.1","2.16.0","2.15.0","2.14.0","2.13.0","2.12.1","2.12.0","2.11.0","2.10.1","2.10.0","2.9.1","2.9.0"]}],"references":["https://cna.erlef.org/cves/CVE-2026-43971.html","https://github.com/ninenines/cowlib/commit/485d58dfa91b91d98135dc95e5615f421715dae5","https://github.com/ninenines/cowlib/commit/89da27ee4c241f5d649ba7d9b7f2188918af6cea","https://hex.pm/packages/cowlib"],"sources":[{"name":"OSV","id":"EEF-CVE-2026-43971","modified":"2026-11-25T17:23:12.597393846Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43971"}],"assessments":[{"source":"OSV","vector":"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","score":6.3}],"products":[],"remediation":[],"observedAt":"2026-11-25T18:37:06.516Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T23:35:31.919Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-21T01:55:31.099Z","attemptedAt":"2026-11-21T01:55:31.099Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-21T01:50:33.662Z","attemptedAt":"2026-11-21T01:50:33.662Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-21T01:45:33.160Z","attemptedAt":"2026-11-21T01:45:33.160Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-21T01:40:33.654Z","attemptedAt":"2026-11-21T01:40:33.654Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-43971","url":"https://www.first.org/epss/","probability":0.00524,"percentile":0.45341,"date":"2026-11-20","checkedAt":"2026-11-21T01:40:33.654Z"},{"source":"ENISA EUVD","id":"EUVD-2026-60573","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-60573","modified":"Sep 16, 2026, 8:24:09 PM","score":6.3,"vector":"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","checkedAt":"2026-11-21T01:45:33.160Z"},{"source":"GitHub Advisory Database","id":"GHSA-gg23-fwhr-prjh","url":"https://github.com/advisories/GHSA-gg23-fwhr-prjh","modified":"2026-09-16T21:31:37Z","checkedAt":"2026-11-21T01:50:33.662Z"},{"source":"NVD","id":"CVE-2026-43971","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43971","modified":"2026-10-22T22:10:00.250","score":6.3,"vector":"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/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","checkedAt":"2026-11-21T01:55:31.099Z"}],"aiSummary":null}