HTTP response splitting in Cpp-httplib - CVE-2026-77341
Published: August 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to inject arbitrary HTTP response headers.
The vulnerability exists due to improper neutralization of crlf sequences in HTTP trailer headers in the done_with_trailer lambda within write_content_chunked() when writing chunked response trailers containing attacker-controlled input. A remote attacker can supply crafted input containing crlf characters that is reflected into trailer fields to inject arbitrary HTTP response headers.
Exploitation requires an application to reflect attacker-controlled data into chunked response trailers via DataSink::done_with_trailer().