# CVE-2026-43966: HTTP Response Splitting via Non-VCHAR Bytes in cow_http_struct_hd:escape_string/2

- Severity: Medium 6.3 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-06-08T16:34:33.364Z
- Modified: 2026-11-25T17:23:02.984Z
- Also known as: GHSA-w4f7-4cxr-rv3c, EEF-CVE-2026-43966
- Weaknesses: CWE-113
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- cowlib: from 2.9.0 before 2.22.0
- ninenines/cowlib: from a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6 before 4401b858f2229abb3ea115c60924f6c77e5f8aa3
- cowboy (Hex): before 2.16.0
- gun (Hex): before 2.4.0
- cowlib (Hex): from 2.9.0 before 2.22.0
- https://github.com/ninenines/cowlib: from a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6 before 4401b858f2229abb3ea115c60924f6c77e5f8aa3
- ninenines cowlib: from 2.9.0 before 2.16.0

## Every score

- EEF: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/ninenines/cowboy/commit/f77cb9b5e730e300fffb551db1ba5d1c4ed878ef> (mitigation, patch, web)
- <https://cna.erlef.org/cves/CVE-2026-43966.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-43966> (related, third-party-advisory, web)
- <https://github.com/ninenines/gun/commit/4f35609eb37109b106a863fc9ba83d7ee64e3e42> (mitigation, patch, web)
- <https://github.com/ninenines/cowlib/commit/a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6> (related, web)
- <https://github.com/ninenines/cowlib/commit/4401b858f2229abb3ea115c60924f6c77e5f8aa3> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-43966> (advisory)
- <https://github.com/ninenines/cowlib/pull/163#issuecomment-4952645232> (web)
- <https://github.com/ninenines/cowlib/pull/166#issuecomment-5067554701> (web)
- <https://github.com/ninenines/cowlib> (package)
- <https://hex.pm/packages/cowlib> (package)

## Sources

- CVE List: [CVE-2026-43966](https://www.cve.org/CVERecord?id=CVE-2026-43966), CVE Terms of Use, modified 2026-11-19
- GitHub Advisory Database: [GHSA-w4f7-4cxr-rv3c](https://github.com/advisories/GHSA-w4f7-4cxr-rv3c), CC-BY-4.0, modified 2026-11-12
- Erlang Ecosystem Foundation: [EEF-CVE-2026-43966](https://osv.dev/vulnerability/EEF-CVE-2026-43966), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-43966](https://nvd.nist.gov/vuln/detail/CVE-2026-43966), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-43966 · Whole record: https://cve.day/CVE-2026-43966.json · Rebuilt by cve.day 2026-11-25T22:59:23.999Z
