# CVE-2026-77341: cpp-httplib: CRLF injection via unvalidated HTTP trailer headers in chunked response writing

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-27T22:16:45.356Z
- Modified: 2026-09-09T21:09:13.080Z
- Weaknesses: CWE-93, CWE-113
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- yhirose cpp-httplib: >= 0.49.0, < 0.50.0

## References

- <https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-2r2h-jc8w-w66c> (exploit)
- <https://github.com/yhirose/cpp-httplib/commit/568d434e72fc51729d0ad33abffb181e5f7a453d>

## Sources

- CVE List: [CVE-2026-77341](https://www.cve.org/CVERecord?id=CVE-2026-77341), CVE Terms of Use, modified 2026-08-28
- NVD: [CVE-2026-77341](https://nvd.nist.gov/vuln/detail/CVE-2026-77341), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-77341 · Whole record: https://cve.day/CVE-2026-77341.json · Rebuilt by cve.day 2026-11-25T22:59:35.559Z
