Improper Handling of Highly Compressed Data (Data Amplification) Affecting cpp-httplib package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

Social Trends
EPSS
0.36% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-CPPHTTPLIB-15019208
  • published26 Feb 2026
  • disclosed12 Jan 2026

Introduced: 12 Jan 2026

CVE-2026-22776  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:22.04 cpp-httplib.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cpp-httplib package and not the cpp-httplib package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1