{"id":"CVE-2026-43971","aliases":["CVE-2026-43971","EEF-CVE-2026-43971"],"related":[],"kind":"vulnerability","state":"published","title":"Link Header Directive Smuggling via Unescaped target/rel/Attribute Keys in cow_link:link/1","summary":"Improper Encoding or Escaping of Output vulnerability in ninenines cowlib allows Link header directive smuggling via unescaped special characters in cow_link:link/1.\n\ncow_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Encoding or Escaping of Output vulnerability in ninenines cowlib allows Link header directive smuggling via unescaped special characters in cow_link:link/1.\n\ncow_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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"eef"},{"lang":"es","text":"La vulnerabilidad de codificación o escape de salida incorrectos en ninenines cowlib permite el contrabando de directivas de encabezado Link a través de caracteres especiales sin escape en cow_link:link/1.\n\ncow_link:do_link/1 en cowlib interpola la URI de destino, el valor rel y las claves de atributo directamente en el valor del encabezado Link: serializado sin escape ni validación de gramática de tokens. Un byte > en el destino cierra prematuramente la ranura URI, permitiendo a un atacante añadir entradas de enlace adicionales con directivas rel elegidas por el atacante. Un ’ o \\ en rel escapa la cadena entre comillas y abre nuevos parámetros. Cualquier byte -incluyendo espacios en blanco, =, y ’- en una clave de atributo se emite textualmente. Debido a que los navegadores actúan sobre directivas Link: como rel=’preconnect’, rel=’preload’ y rel=’prerender’, un atacante que puede influir en estos campos en una aplicación que procesa encabezados Link analizados a través de cow_link:link/1 puede forzar a los navegadores de las víctimas a realizar conexiones fuera de banda a orígenes controlados por el atacante.\n\nEste problema afecta a cowlib: a partir de la versión 2.9.0.","source":"nvd"}],"published":"2026-08-18T09:01:53.199Z","modified":"2026-11-25T17:23:12.597Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","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,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","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,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","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"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"type":"semver","introduced":"2.9.0","fixed":"2.20.0","status":"affected"}],"vendor":"ninenines","product":"cowlib","package":"cowlib","cpe":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","repo":"https://github.com/ninenines/cowlib","source":"cvelist"},{"ranges":[{"type":"git","introduced":"485d58dfa91b91d98135dc95e5615f421715dae5","fixed":"89da27ee4c241f5d649ba7d9b7f2188918af6cea","status":"affected"}],"vendor":"ninenines","product":"cowlib","package":"ninenines/cowlib","cpe":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","repo":"https://github.com/ninenines/cowlib","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.9.0","status":"affected","fixed":"2.20.0"}],"ecosystem":"Hex","package":"cowlib","purl":"pkg:hex/cowlib","source":"eef"},{"ranges":[{"type":"git","introduced":"485d58dfa91b91d98135dc95e5615f421715dae5","status":"affected","fixed":"89da27ee4c241f5d649ba7d9b7f2188918af6cea"}],"repo":"https://github.com/ninenines/cowlib","source":"eef"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-43971.html","tags":["related","third-party-advisory","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43971","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ninenines/cowlib/commit/485d58dfa91b91d98135dc95e5615f421715dae5","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ninenines/cowlib/commit/89da27ee4c241f5d649ba7d9b7f2188918af6cea","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/cowlib","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Loïc Hoguin"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-18T14:11:55.645Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43971","url":"https://www.cve.org/CVERecord?id=CVE-2026-43971","licence":"CVE Terms of Use","modified":"2026-09-16T20:24:09.279Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-43971","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43971","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:12.597Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43971","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43971","licence":"Public domain","modified":"2026-10-22T22:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:33.429Z","epss":{"score":0.00384,"percentile":0.34582,"date":"2026-12-02T12:00:21.000Z"}}