CVE-2026-22776 in Yhirose Cpp-Httplib
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 agains...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Yhirose | Cpp-Httplib | < 0.30.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-22776 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-069332-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2026-01-12 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-409: CWE-409
Analysis AI-written, not human-reviewed
A Denial of Service (DoS) vulnerability exists in cpp-httplib versions prior to 0.30.1 due to unsafe handling of compressed HTTP request bodies, allowing attackers to exploit this by sending large compressed payloads that exceed the expected size limits.
The vulnerability arises from the library's failure to properly limit the size of decompressed HTTP request bodies. Attackers can exploit this by sending compressed HTTP requests with a Content-Encoding header set to gzip, br, or similar, containing payloads that, when decompressed, exceed the library's configured payload_max_length. This can lead to excessive resource consumption and potential denial of service.
Questions
What is CVE-2026-22776?
A Denial of Service (DoS) vulnerability exists in cpp-httplib versions prior to 0.30.1 due to unsafe handling of compressed HTTP request bodies, allowing attackers to exploit this by sending large compressed payloads that exceed the expected size limits.
What is the CVSS score for CVE-2026-22776?
CVE-2026-22776 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.6%.
Is CVE-2026-22776 actively exploited?
No confirmed active exploitation of CVE-2026-22776 as of 2026-09-25.
How do I remediate CVE-2026-22776?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-22776?
CVE-2026-22776 affects Yhirose Cpp-Httplib.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Yhirose","product":"Cpp-Httplib","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.