Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-43966 — cowboy

🟡 CVSS 5.3 — Medium ✅ No Known Exploit CWE-113 OSV
5.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

HTTP Response Splitting via Non-VCHAR Bytes in cow_http_struct_hd:escape_string/2

Summary

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.

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.

Configuration

The application must pass attacker-controlled data as a string value into cow\_http\_struct\_hd:item/1 (or a wrapper that delegates to it). Applications that construct structured-fields header values exclusively from trusted, application-controlled values are not affected.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: 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

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Attack requirements: Present — the target has to be in a particular state for the attack to work.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2026-43966 is classified as CWE-113: HTTP Response Splitting. Unescaped input reaches an HTTP header, letting an attacker inject line breaks and forge additional headers or responses.

Affected software

CVE-2026-43966 is recorded against 3 packages.

  • cowboy
  • cowlib
  • gun

Timeline and source

Published on 8 June 2026 and last revised on 29 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
cna.erlef.org (Web)
github.com (Package)
osv.dev (Web)

Other advisories for this package

cowboy has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-113: HTTP Response Splitting) in other software:

CVE-2026-43966 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 5.3
CVSS Vector 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
CWE CWE-113
Public Exploit ✅ No
Source OSV
Published 2026-06-08
Updated 2026-08-20
Modified 2026-07-29
Fix URL N/A

Affected Packages

Software From version Fixed in
cowboy
cowlib
gun

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in cowboy

CVE-2026-43966 is rated CVSS 5.3 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026