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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-409"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22776.json"
}{
"cpe": "cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.30.1"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22776.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"218099892839646534554842095756243613116",
"7621869220911498893984388739403820609",
"90496193422603873710275297506514275194",
"320926213436950818523683172972422008144",
"64440800842437551768590624981444787950"
],
"threshold": 0.9
},
"id": "CVE-2026-22776-58637582",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/yhirose/cpp-httplib/commit/2e2e47bab1ae6a853476eecbc4bf279dd1fef792",
"target": {
"file": "httplib.h"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "138949788160032023022680722052479401795",
"length": 1647
},
"id": "CVE-2026-22776-c5752c67",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/yhirose/cpp-httplib/commit/2e2e47bab1ae6a853476eecbc4bf279dd1fef792",
"target": {
"file": "httplib.h",
"function": "Server::read_content"
}
}
]
"2026-08-12T10:59:20Z"