CVE-2026-43966
HTTP Response Splitting via Non-VCHAR Bytes in cow_http_struct_hd:escape_string/2
Mitigation
- Upgrade cowlib to 2.22.0 or later.
- Upgrade cowlib to 4401b858f2229abb3ea115c60924f6c77e5f8aa3 or later.
- Vendor workaround: Validate all values passed into structured-fields header builders (directly via cow_http_struct_hd:item/1 or indirectly via higher-level wrappers) before calling the encoder. Reject any value that is not from a trusted, application-controlled source or that contains CR (\r) or LF (\n) bytes.
- Applications using cowboy 2.16.0 or later are protected on the server side by the invalid_response_headers option (defaults to error_terminate), which rejects any outgoing response header value containing CR or LF before it reaches the wire. Applications using gun 2.4.0 or later are protected on the client side by the invalid_request_headers request option (defaults to raise), which raises an exception when an outgoing request header value contains CR or LF.
Who should check
- Anyone running ninenines cowlib >= 2.9.0, < 2.22.0
- Anyone running ninenines cowlib >= a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6, < 4401b858f2229abb3ea115c60924f6c77e5f8aa3
Vulnerability facts
- Affected
- ninenines cowlib >= 2.9.0, < 2.22.0; ninenines cowlib >= a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6, < 4401b858f2229abb3ea115c60924f6c77e5f8aa3
- Fixed in
- ninenines cowlib 2.22.0, ninenines cowlib 4401b858f2229abb3ea115c60924f6c77e5f8aa3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.45% chance of exploitation in 30 days (percentile 31, 2026-11-26)
- CWE
- CWE-113
- Modified
Description
Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in ninenines cowlib allows HTTP response splitting via non-VCHAR bytes in structured-fields string values. cow_http_struct_hd:escape_string/2 in cowlib only escapes \ and ", passing all other bytes through verbatim. This creates an encoder/decoder asymmetry: the matching parser accepts only printable ASCII (0x20–0x7E, excluding " and \), but the encoder emits any byte including CR and LF. An application that builds a structured HTTP header via cow_http_struct_hd:item/1 (or a higher-level wrapper such as cow_http_hd:wt_protocol/1) from attacker-controlled input can have \r\n injected into the serialized header value. Once on the wire, the injected CRLF terminates the current header and any following bytes are interpreted as a new header, enabling HTTP response splitting. This issue affects cowlib: from 2.9.0 before 2.22.0.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-43966. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-43966.md Affected: ninenines cowlib >= 2.9.0, < 2.22.0; ninenines cowlib >= a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6, < 4401b858f2229abb3ea115c60924f6c77e5f8aa3 Fixed in: ninenines cowlib 2.22.0, ninenines cowlib 4401b858f2229abb3ea115c60924f6c77e5f8aa3 Steps: 1. Search this machine and project for ninenines cowlib: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/ninenines/cowboy/commit/f77cb9b5e730e300fffb551db1ba5d1c4ed878ef
- https://github.com/ninenines/gun/commit/4f35609eb37109b106a863fc9ba83d7ee64e3e42
- https://github.com/ninenines/cowlib/commit/a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6
- https://github.com/ninenines/cowlib/commit/4401b858f2229abb3ea115c60924f6c77e5f8aa3
FAQ
Is CVE-2026-43966 being exploited?
There is no confirmed exploitation: CVE-2026-43966 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-43966?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-43966?
ninenines cowlib >= 2.9.0, < 2.22.0; ninenines cowlib >= a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6, < 4401b858f2229abb3ea115c60924f6c77e5f8aa3.
Is there a fix for CVE-2026-43966?
Yes. Fixed in ninenines cowlib 2.22.0, ninenines cowlib 4401b858f2229abb3ea115c60924f6c77e5f8aa3. Upgrade cowlib to 2.22.0 or later. Upgrade cowlib to 4401b858f2229abb3ea115c60924f6c77e5f8aa3 or later. Vendor workaround: Validate all values passed into structured-fields header builders (directly via cow_http_struct_hd:item/1 or indirectly via higher-level wrappers) before calling the encoder. Reject any value that is not from a trusted, application-controlled source or that contains CR (\r) or LF (\n) bytes. Applications using cowboy 2.16.0 or later are protected on the server side by the invalid_response_headers option (defaults to error_terminate), which rejects any outgoing response header value containing CR or LF before it reaches the wire. Applications using gun 2.4.0 or later are protected on the client side by the invalid_request_headers request option (defaults to raise), which raises an exception when an outgoing request header value contains CR or LF.
How do I check if I'm affected by CVE-2026-43966?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.