Skip to main content
CVE-2026-21428VulnerabilityPublished Updated

CVE-2026-21428: yhirose cpp-httplib · CRLF Injection

Affects yhirose cpp-httplibSource CVE Database V5

0

Not known to be exploited · CVSS 7.7 High : upgrade to 0.30.0 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.30.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade yhirose/cpp-httplib to 0.30.0.

Affected software

ProductAffectedFixed in
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threatsAffected
  • <0.30.0
Fixed in
  • 0.30.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Immediate upgrade of cpp-httplib to version 0.30.0 or later to ensure proper sanitization of HTTP headers. 2. Implement strict input validation and sanitization on all HTTP headers at the application level to prevent CRLF injection, even if the underlying library is patched. 3. Restrict and monitor outbound HTTP requests from internal servers to limit SSRF impact, using network segmentation and egress filtering. 4. Employ Web Application Firewalls (WAFs) or Intrusion Detection Systems (IDS) configured to detect anomalous HTTP header injection patterns and SSRF attempts. 5. Review and harden server configurations, especially for HTTP/1.1 pipelining support, to minimize SSRF exploitation vectors. 6. Conduct security audits and code reviews focusing on HTTP header handling in custom code interfacing with cpp-httplib. 7. Maintain up-to-date threat intelligence and monitor for emerging exploit attempts targeting this vulnerability. 8. Educate development teams about secure HTTP header handling and the risks of CRLF injection.

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.

References

Community reviews

Loading reviews…