{"id":"CVE-2026-43969","aliases":["CVE-2026-43969","GHSA-g2wm-735q-3f56","EEF-CVE-2026-43969"],"related":[],"kind":"vulnerability","state":"published","title":"Cookie Request Header Injection via Unvalidated Encoder in cow_cookie:cookie/1","summary":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows HTTP request splitting and cookie smuggling via unvalidated cookie name and value fields.\n\ncow_cookie:cookie/1 in cowlib builds a client-side Cookie: request header from a list of name-value pairs without validating either field. An attacker who controls the cookie names or values passed to this function can inject ;, ,, CR, LF, or TAB characters into the serialized header. This enables two classes of attack: cookie smuggling within a single header (e.g. injecting ; admin=1 to introduce a phantom cookie that the receiving server treats as authentic) and HTTP request header splitting (injecting CRLF to append arbitrary headers or smuggle a complete second request against a shared upstream proxy). The decoder side (parse_cookie_name/1, parse_cookie_value/1) and setcookie/3 already validate and reject these characters; the encoder alone is missing the check.\n\nThis issue affects cowlib: from 2.9.0 before 2.21.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows HTTP request splitting and cookie smuggling via unvalidated cookie name and value fields.\n\ncow_cookie:cookie/1 in cowlib builds a client-side Cookie: request header from a list of name-value pairs without validating either field. An attacker who controls the cookie names or values passed to this function can inject ;, ,, CR, LF, or TAB characters into the serialized header. This enables two classes of attack: cookie smuggling within a single header (e.g. injecting ; admin=1 to introduce a phantom cookie that the receiving server treats as authentic) and HTTP request header splitting (injecting CRLF to append arbitrary headers or smuggle a complete second request against a shared upstream proxy). The decoder side (parse_cookie_name/1, parse_cookie_value/1) and setcookie/3 already validate and reject these characters; the encoder alone is missing the check.\n\nThis issue affects cowlib: from 2.9.0 before 2.21.0.","source":"cvelist"},{"lang":"en","text":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows HTTP request splitting and cookie smuggling via unvalidated cookie name and value fields.\n\ncow_cookie:cookie/1 in cowlib builds a client-side Cookie: request header from a list of name-value pairs without validating either field. An attacker who controls the cookie names or values passed to this function can inject ;, ,, CR, LF, or TAB characters into the serialized header. This enables two classes of attack: cookie smuggling within a single header (e.g. injecting \"; admin=1\" to introduce a phantom cookie that the receiving server treats as authentic) and HTTP request header splitting (injecting CRLF to append arbitrary headers or smuggle a complete second request against a shared upstream proxy). The decoder side (parse_cookie_name/1, parse_cookie_value/1) and setcookie/3 already validate and reject these characters; the encoder alone is missing the check.\n\nThis issue affects cowlib from 2.9.0.","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows HTTP request splitting and cookie smuggling via unvalidated cookie name and value fields.\n\n`cow_cookie:cookie/1` in cowlib builds a client-side `Cookie:` request header from a list of name-value pairs without validating either field. An attacker who controls the cookie names or values passed to this function can inject `;`, `,`, CR, LF, or TAB characters into the serialized header. This enables two classes of attack: cookie smuggling within a single header (e.g. injecting `; admin=1` to introduce a phantom cookie that the receiving server treats as authentic) and HTTP request header splitting (injecting CRLF to append arbitrary headers or smuggle a complete second request against a shared upstream proxy). The decoder side (`parse_cookie_name/1`, `parse_cookie_value/1`) and `setcookie/3` already validate and reject these characters; the encoder alone is missing the check.\n\nThis issue affects cowlib: from 2.9.0 before 2.21.0.\n\n## Workarounds\n\nValidate inputs into `cow_cookie:cookie/1` to only include valid cookie name and value characters as defined in RFC 6265 Section 4.1.1 before passing them to the function.\n\n## Configurations\n\nThe application must pass attacker-controlled bytes as cookie names or values to `cow_cookie:cookie/1`. Applications that construct cookie lists exclusively from trusted, application-controlled values are not affected.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de neutralización inadecuada de secuencias CRLF (’Inyección CRLF’) en ninenines cowlib permite la división de solicitudes HTTP y el contrabando de cookies a través de campos de nombre y valor de cookie no validados.\n\ncow_cookie:cookie/1 en cowlib construye una cabecera de solicitud Cookie: del lado del cliente a partir de una lista de pares nombre-valor sin validar ninguno de los campos. Un atacante que controla los nombres o valores de las cookies pasados a esta función puede inyectar los caracteres ;, ,, CR, LF o TAB en la cabecera serializada. Esto permite dos clases de ataque: el contrabando de cookies dentro de una única cabecera (por ejemplo, inyectando ; admin=1 para introducir una cookie fantasma que el servidor receptor trata como auténtica) y la división de cabeceras de solicitud HTTP (inyectando CRLF para añadir cabeceras arbitrarias o contrabandear una segunda solicitud completa contra un proxy ascendente compartido). El lado del decodificador (parse_cookie_name/1, parse_cookie_value/1) y setcookie/3 ya validan y rechazan estos caracteres; solo el codificador carece de la comprobación.\n\nEste problema afecta a cowlib: desde la versión 2.9.0 hasta versiones anteriores a la 2.21.0.","source":"nvd"}],"published":"2026-05-11T18:06:40.667Z","modified":"2026-11-25T17:23:06.874Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":3.2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":3.2,"rating":"LOW"}],"cwes":["CWE-93"],"affected":[{"ranges":[{"type":"semver","introduced":"2.9.0","fixed":"2.21.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":"f017f8a0ecbffd5033d9ab49bf180186f7a523a7","fixed":"c17fd73945ef536cccecc492d286fb6b6d1c3307","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","lastAffected":"2.16.1"}],"ecosystem":"Hex","package":"cowlib","purl":"pkg:hex/cowlib","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.9.0","status":"affected","fixed":"2.21.0"}],"ecosystem":"Hex","package":"cowlib","purl":"pkg:hex/cowlib","source":"eef"},{"ranges":[{"type":"git","introduced":"f017f8a0ecbffd5033d9ab49bf180186f7a523a7","status":"affected","fixed":"c17fd73945ef536cccecc492d286fb6b6d1c3307"}],"repo":"https://github.com/ninenines/cowlib","source":"eef"},{"ranges":[{"status":"affected","introduced":"2.9.0","lastAffected":"2.16.1"}],"vendor":"ninenines","product":"cowlib","cpe":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/erlef/cowlib/commit/177953dd51540da11090666c1f007214127a1144","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-43969.html","tags":["related","third-party-advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43969","tags":["related","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ninenines/cowlib/commit/f017f8a0ecbffd5033d9ab49bf180186f7a523a7","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ninenines/cowlib/commit/c17fd73945ef536cccecc492d286fb6b6d1c3307","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43969","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ninenines/cowlib","tags":["package"],"sources":["ghsa"]},{"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-05-11T18:55:16.028Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43969","url":"https://www.cve.org/CVERecord?id=CVE-2026-43969","licence":"CVE Terms of Use","modified":"2026-11-19T08:44:11.677Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g2wm-735q-3f56","url":"https://github.com/advisories/GHSA-g2wm-735q-3f56","licence":"CC-BY-4.0","modified":"2026-06-08T20:31:01.091Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-43969","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43969","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:06.874Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43969","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43969","licence":"Public domain","modified":"2026-10-26T20:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:21.246Z","epss":{"score":0.00191,"percentile":0.09207,"date":"2026-12-01T12:00:22.000Z"}}