CVE-2026-46527

High

Description

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, When the server has called Server::set_trusted_proxies() with a non-empty trusted-proxy list, an attacker can send an HTTP request that includes an X-Forwarded-For header whose value parses to no valid IP segments. The code path then executes get_client_ip(), which calls front() on an empty std::vector—undefined behavior in C++. On typical implementations this manifests as abnormal process termination (denial of service). With Sanitizers enabled, you get an explicit runtime diagnostic. This vulnerability is fixed in 0.44.0.

SeverityHigh
CVSS7.5
Exploit probability—
ProductYhirose Cpp-httplib
PublishedMay 29, 2026
First seenMay 29, 2026

How to fix

Update
  • yhirose cpp-httplib0.44.0 or later

Affected products

ProductAffected versionsFixed in
yhirose cpp-httplibv < 0.44.00.44.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.