CVE-2026-77341

published 27 Aug 2026 · updated 28 Aug 2026

cpp-httplib: CRLF injection via unvalidated HTTP trailer headers in chunked response writing

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

cpp-httplib is a C++ header-only HTTP/HTTPS library. In version 0.49.0, the chunked-response trailer output path writes trailer header names and values directly to the socket without validating them, allowing CRLF sequences in a trailer field to inject additional headers or split the HTTP response. Unlike every other header-writing path in the library, the trailer-writing code applies none of the field-name and field-value checks that reject carriage return and line feed, so an application that places attacker-influenced data into a chunked response trailer emits attacker-controlled CRLF onto the wire. This enables HTTP response splitting, letting an attacker forge response headers or inject a second response. This issue is fixed in version 0.50.0.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
yhirose>=0.49.0 <0.50.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-77341 severity on Zeptric[![CVE-2026-77341](https://zeptric.io/badge/cve/CVE-2026-77341.svg)](https://zeptric.io/cve/CVE-2026-77341)