{"id":"CVE-2026-77341","aliases":["CVE-2026-77341"],"related":[],"kind":"vulnerability","state":"published","title":"cpp-httplib: CRLF injection via unvalidated HTTP trailer headers in chunked response writing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-08-27T22:16:45.356Z","modified":"2026-09-09T21:09:13.080Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-93","CWE-113"],"affected":[{"ranges":[{"version":">= 0.49.0, < 0.50.0","status":"affected"}],"vendor":"yhirose","product":"cpp-httplib","source":"cvelist"}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-2r2h-jc8w-w66c","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/yhirose/cpp-httplib/commit/568d434e72fc51729d0ad33abffb181e5f7a453d","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-28T15:29:40.847Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77341","url":"https://www.cve.org/CVERecord?id=CVE-2026-77341","licence":"CVE Terms of Use","modified":"2026-08-28T15:30:02.142Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77341","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77341","licence":"Public domain","modified":"2026-09-09T21:09:13.080Z"}],"updatedAt":"2026-11-25T22:59:35.559Z","epss":{"score":0.00345,"percentile":0.30009,"date":"2026-12-01T12:00:22.000Z"}}