# CVE-2026-43966: HTTP Response Splitting via Non-VCHAR Bytes in cow\_http\_struct\_hd:escape\_string/2

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-113
- **Published:** 2026-06-08T16:34:33.364Z
- **Modified:** 2026-11-19T08:18:38.614Z

## Who should check

- Anyone running ninenines cowlib \>= 2.9.0, \< 2.22.0
- Anyone running ninenines cowlib \>= a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6, \< 4401b858f2229abb3ea115c60924f6c77e5f8aa3

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

- ninenines cowlib: \>= 2.9.0, \< 2.22.0 (cvelist)
- ninenines cowlib: \>= a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6, \< 4401b858f2229abb3ea115c60924f6c77e5f8aa3 (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://github.com/ninenines/cowboy/commit/f77cb9b5e730e300fffb551db1ba5d1c4ed878ef>
- patch: <https://github.com/ninenines/gun/commit/4f35609eb37109b106a863fc9ba83d7ee64e3e42>
- patch: <https://github.com/ninenines/cowlib/commit/a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6>
- patch: <https://github.com/ninenines/cowlib/commit/4401b858f2229abb3ea115c60924f6c77e5f8aa3>
- other: <https://cna.erlef.org/cves/CVE-2026-43966.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-43966>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43966>

HTML: <https://flawdb.com/CVE-2026-43966> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43966>
