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().
Affected software
openEuler
cpp-httplib
cpp-httplib-debuginfo
cpp-httplib-debugsource
cpp-httplib-devel
How to mitigate CVE-2026-77341
cpp-httplib - update to 0.46.0-3
cpp-httplib-debuginfo - update to 0.46.0-3
cpp-httplib-debugsource - update to 0.46.0-3
cpp-httplib-devel - update to 0.46.0-3