CVE-2026-77341: CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') in yhirose cpp-httplib
Description
A C++11 single-file header-only cross platform HTTP/HTTPS library. It's extremely easy to setup. Just include httplib.h file in your code! Security Fix(es): 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.(CVE-2026-77341)
CVSS v4.0
Score 5.3medium
Affected software
yhirose
cpp-httplib
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
cpp-httplib is a C++ header-only HTTP/HTTPS library. In version 0.49.0, the chunked-response trailer output path fails to validate carriage return and line feed (CRLF) sequences in trailer field names and values before writing them to the socket. Unlike other header-writing code paths, this lack of validation allows attacker-controlled CRLF sequences to be injected into the HTTP response, enabling HTTP response splitting. This vulnerability is tracked as CVE-2026-77341 and is fixed in version 0.50.0.
Potential Impact
An attacker who can influence data placed into a chunked response trailer can inject CRLF sequences, causing HTTP response splitting. This can allow forging of response headers or injection of a second HTTP response, potentially leading to web cache poisoning, cross-site scripting, or other HTTP-level attacks. The CVSS 4.0 score is 5.3 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction needed, and limited impact on confidentiality and integrity.
Mitigation Recommendations
Upgrade to cpp-httplib version 0.50.0 or later, where the vulnerability is fixed by proper validation of CRLF sequences in trailer headers. No other mitigation is required as the fix addresses the root cause.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-20T19:28:35.243Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a916b3dacd9273b49cabe5e
Added to database: 08/28/2026, 11:04:29 UTC
Last enriched: 09/25/2026, 04:45:34 UTC
Last updated: 10/13/2026, 18:48:23 UTC
Views: 91
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.