{"id":"CVE-2026-77341","published":"2026-08-27T22:16:45Z","modified":"2026-08-28T15:30:02Z","title":"cpp-httplib: CRLF injection via unvalidated HTTP trailer headers in chunked response writing","vendor":"yhirose","product":"cpp-httplib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00461,"percentile":0.40851,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-2r2h-jc8w-w66c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yhirose/cpp-httplib/commit/568d434e72fc51729d0ad33abffb181e5f7a453d","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":8.17},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"yhirose","affectedVersions":[{"vendor":"yhirose","product":"cpp-httplib","versions":[">= 0.49.0, < 0.50.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-28T15:29:40.847359Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-67299","exploited":false,"provenance":"source"}}