{"answers":{"affected":"3 open source packages ship an affected version, including cowlib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-43968 in the wild and no public exploit code.","fix":"Upgrade cowlib to 2.16.1 or later.","what":"CVE-2026-43968 is a medium-severity vulnerability in ninenines cowlib, published on 11 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-43968 and fix it if it is affected.\n\nWhat it is: CVE-2026-43968 is a medium-severity vulnerability in ninenines cowlib, published on 11 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-43968 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cowlib (Hex): affected from 2.6.0; fixed in 2.16.1\n- cowlib (Hex): affected from 2.6.0; fixed in 2.16.1\n- cowlib (Hex): affected from 2.6.0; fixed in 2.16.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-43968/ (Markdown: https://insights.sbomify.com/CVE-2026-43968/index.md)","id":"CVE-2026-43968","markdown":"https://insights.sbomify.com/CVE-2026-43968/index.md","name":"CVE-2026-43968","record":{"aliases":["AZL-86793","EEF-CVE-2026-43968","GHSA-hv23-4qp7-8c8r"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Erlang HTTP library","requires_auth":"none","summary":"Attackers can inject CRLF sequences in SSE events to forge arbitrary event types and data, potentially leading to client-side code execution or XSS.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"cowlib","vendor":"ninenines"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows SSE event splitting and injection via unvalidated field values.\n\ncow_sse:event/1 in cowlib guards the id and event fields against \\n but not against bare \\r, and the internal prefix_lines/2 function used for data and comment fields splits only on \\n. Because the SSE specification requires decoders to treat \\r\\n, \\r, and \\n as equivalent line terminators, an attacker who controls any of these fields can inject additional SSE lines and forge a complete event with an arbitrary event type and data payload on the receiving end. In typical deployments where browser EventSource clients or other SSE consumers dispatch on event.type and render event.data, this enables event splitting, client-side logic manipulation, and stored-XSS-equivalent behaviour when event data is inserted into the DOM.\n\nThis issue affects cowlib from 2.6.0 before 2.16.1.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CR Injection in SSE Encoder Enables Event Splitting via cow_sse:event/1","id":"CVE-2026-43968","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"other","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Cookie Request Header Injection via Unvalidated Encoder in cow_cookie:cookie/1","id":"CVE-2026-43969"},"packages":[{"ecosystem":"Hex","fixed":["2.16.1"],"introduced":["2.6.0"],"last_affected":[],"package":"cowlib","purl":"pkg:hex/cowlib","source":"EEF-CVE-2026-43968"},{"ecosystem":"Hex","fixed":["2.16.1"],"introduced":["2.6.0"],"last_affected":[],"package":"cowlib","purl":null,"source":"GHSA-hv23-4qp7-8c8r"},{"ecosystem":"Hex","fixed":["2.16.1"],"introduced":["2.6.0"],"last_affected":[],"package":"cowlib","purl":"pkg:hex/cowlib","source":"GHSA-hv23-4qp7-8c8r"}],"prev":{"headline":"Quadratic fragment-name uniqueness check causes denial of service in absinthe","id":"CVE-2026-43967"},"products":["cowlib"],"published":"2026-05-11","related":[{"cvss_score":8.7,"headline":"Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS","id":"CVE-2026-7790","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":6.3,"headline":"HTTP Response Splitting via Non-VCHAR Bytes in cow_http_struct_hd:escape_string/2","id":"CVE-2026-43966","kev_date_added":null,"published":"2026-06-08"},{"cvss_score":2.1,"headline":"Cookie Request Header Injection via Unvalidated Encoder in cow_cookie:cookie/1","id":"CVE-2026-43969","kev_date_added":null,"published":"2026-05-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["ninenines"]},"summary":"Attackers can inject CRLF sequences in SSE events to forge arbitrary event types and data, potentially leading to client-side code execution or XSS.","url":"https://insights.sbomify.com/CVE-2026-43968/"}