CVE-2026-21428 Details
Description
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.30.0, the ``write_headers`` function does not check for CR & LF characters in user supplied headers, allowing untrusted header value to escape header lines. This vulnerability allows attackers to add extra headers, modify request body unexpectedly & trigger an SSRF attack. When combined with a server that supports http1.1 pipelining (springboot, python twisted etc), this can be used for server side request forgery (SSRF). Version 0.30.0 fixes this issue.
A CRLF injection vulnerability has been identified in cpp-httplib versions prior to 0.30.0. The issue arises in the write_headers function, which fails to sanitize user-supplied header values, allowing the injection of CRLF characters. This oversight enables attackers to add additional headers, unexpectedly modify the request body, and potentially exploit server-side request forgery (SSRF) vulnerabilities, especially when targeting servers that support HTTP/1.1 pipelining, such as those built with Spring Boot or Python's Twisted framework.
Users are advised to update to cpp-httplib version 0.30.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/yhirose/cpp-httplib/commit/98048a033a532ff22320ce1d11789f8d5710dfcd | [email protected] | Patch |
| https://github.com/yhirose/cpp-httplib/releases/tag/v0.30.0 | [email protected] | ProductRelease Notes |
| https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-wpc6-j37r-jcx7 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yhirose cpp-httplib | < 0.30.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 6, 2026 | Initial Analysis | [email protected] |
| Jan 1, 2026 | New CVE Received | [email protected] |