CVE-2026-77341
published medium CVSS 4.0 · 5.3cpp-httplib: CRLF injection via unvalidated HTTP trailer headers in chunked response writing
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yhirose | — | cpp-httplib>= 0.49.0, < 0.50.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | ccacheaarch64 | Advisory build | 4.14.1-1.1 | OPENSUSE-SU-2026:11979-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ccacheppc64le | Advisory build | 4.14.1-1.1 | OPENSUSE-SU-2026:11979-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ccaches390x | Advisory build | 4.14.1-1.1 | OPENSUSE-SU-2026:11979-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ccachex86_64 | Advisory build | 4.14.1-1.1 | OPENSUSE-SU-2026:11979-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yhirose | cpp-httplib | >= 0.49.0, < 0.50.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-93 CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
- CWE-113 CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
References
2Provider assertions
2GitHub_M · cna
cpp-httplib: CRLF injection via unvalidated HTTP trailer headers in chunked response writing
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a7da8d9215dbb8dce55dd6e5d999b77024e2072e49bed3f8507b2a8a1fba6a22
- Ingested
- 23 Sep 2026, 09:32:39 UTC
- Source record
- Official CVE record