Skip to main content
CVE-2026-22776VulnerabilityPublished

CVE-2026-22776: yhirose cpp-httplib · Data Amplification

Affects yhirose cpp-httplibSource CVE Database V5

0

Not known to be exploited · CVSS 8.7 High : upgrade to 0.30.1 soon.

Data as of 26 Oct 2026, 06:26 UTC

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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 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 cpp-httplib and yhirose/cpp-httplib to 0.30.1.

Affected software

ProductAffectedFixed in
yhirosecpp-httplibAffected
  • <0.30.1
Fixed in
  • 0.30.1
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threatsAffected
  • <0.30.1
Fixed in
  • 0.30.1

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

AI-suggested

The most effective mitigation is to upgrade cpp-httplib to version 0.30.1 or later, where the vulnerability is addressed by properly limiting decompressed data sizes. For organizations unable to immediately upgrade, implementing network-level controls to restrict or block HTTP requests with suspicious or unusually large compressed payloads can reduce exposure. Application-layer filtering to validate decompressed payload sizes before processing is recommended if feasible. Additionally, deploying Web Application Firewalls (WAFs) with custom rules to detect and block anomalous compression patterns can help mitigate exploitation attempts. Monitoring system memory usage and setting resource limits on processes using cpp-httplib can provide early detection and containment of DoS conditions. Regular security assessments and code reviews of third-party libraries should be conducted to identify and remediate similar risks proactively.

Description

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.30.1, a Denial of Service (DoS) vulnerability exists in cpp-httplib due to the unsafe handling of compressed HTTP request bodies (Content-Encoding: gzip, br, etc.). The library validates the payload_max_length against the compressed data size received from the network, but does not limit the size of the decompressed data stored in memory.

References

Community reviews

Loading reviews…