BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-22776 in Yhirose Cpp-Httplib

High 7.5

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.

CVSS 3.17.5
CVSS v48.7
EPSS0.6%
EPSS percentile45th
FixUnknown

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

VendorProductAffected 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-exploitedNot in the CISA KEV catalog
Public exploitNot 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 IDCVE-2026-22776
BreachSpider IDBS-2026-GLOBAL-069332-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2026-01-12
Last modified2026-06-17
Weakness (CWE)
SourceNVD

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"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.