Quick answers
- Is CVE-2026-77341 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-77341 being exploited in the wild.
- How severe is CVE-2026-77341?
- Informational severity, with a CVSS score of 6.5, published 28 August 2026.
- Which products and versions are affected?
- Yhirose Cpp-Httplib 0.49.0.
- Is there a fix for CVE-2026-77341?
- A patch was published on 2026-08-21: Fixed in version 0.50.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- Am I affected by CVE-2026-77341?
- Check whether you run Yhirose Cpp-Httplib at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is a CRLF injection (CWE-113/CWE-93) in the chunked response trailer output path within httplib.h. The done_with_trailer lambda (lines 7722-7728) writes trailer header names and values directly to the socket without calling is_field_name() or is_field_value() validation functions, unlike every other header-writing path in the library. An attacker can supply application input with embedded CR/LF bytes (0x0d, 0x0a) that pass through URL decoding and are reflected into a chunked response trailer via DataSink::done_with_trailer(), reaching the HTTP response stream unfiltered. This enables HTTP response splitting—forging additional headers or injecting second responses. The attack requires the application to place untrusted user input into trailer headers. The fix, released in version 0.50.0, applies the same field validation checks used elsewhere in the library before writing trailer fields to the wire.
Affected products
- yhirose cpp-httplib 0.49.0
Timeline
- 2026-08-28: disclosed: CVE-2026-77341 published
- 2026-08-21: patched: Fixed in version 0.50.0