CVE-2026-28435: yhirose cpp-httplib · Uncontrolled Resource Consumption
Affects yhirose cpp-httplibSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.35.0 soon.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.35.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 4 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 30 Oct 2026.
What to do
Upgrade cpp-httplib and yhirose/cpp-httplib to 0.35.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| yhirosecpp-httplib | Affected
| Fixed in
|
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The primary mitigation is to upgrade cpp-httplib to version 0.35.0 or later, where the vulnerability is fixed by enforcing payload size limits on decompressed request bodies. For organizations unable to upgrade immediately, implement additional controls such as: 1) Deploying web application firewalls (WAFs) or reverse proxies that limit request body sizes both compressed and decompressed, if supported. 2) Monitoring and rate-limiting incoming requests with compressed content to detect and block abnormal payload expansion patterns. 3) Applying resource usage quotas or limits at the application or container level to prevent CPU and memory exhaustion. 4) Auditing application code to ensure no other decompression or streaming handlers bypass payload size enforcement. 5) Logging and alerting on unusually large decompressed payloads or resource spikes. These measures help reduce the risk of denial of service while planning and executing the upgrade. Additionally, developers should review usage of HandlerWithContentReader and ensure that any custom content readers enforce size limits on decompressed data.
Description
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.35.0, cpp-httplib (httplib.h) does not enforce Server::set_payload_max_length() on the decompressed request body when using HandlerWithContentReader (streaming ContentReader) with Content-Encoding: gzip (or other supported encodings). A small compressed payload can expand beyond the configured payload limit and be processed by the application, enabling a payload size limit bypass and potential denial of service (CPU/memory exhaustion). This vulnerability is fixed in 0.35.0.