Skip to main content
EPSS 0.5%top 62%

CVE-2026-77341: CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') in yhirose cpp-httplib

0
Medium
Published: 09/25/2026 (09/25/2026, 01:28:19 UTC)
Source: CVE Database V5
Vendor/Project: yhirose
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

yhirose

cpp-httplib

Affected versions
>=0.49.0 <0.50.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/25/2026, 04:45:34 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses