CVE-2026-54919

High

Description

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. In affected Mbed TLS backend versions from 0.31.0 through 0.46.1 and wolfSSL backend versions from 0.33.0 through 0.46.1, when cpp-httplib is built with CPPHTTPLIB_MBEDTLS_SUPPORT or CPPHTTPLIB_WOLFSSL_SUPPORT and a client connects to an IP-literal host with server certificate verification enabled, SSLClient and Client in HTTPS mode skip certificate chain validation and WebSocketClient on the Mbed TLS backend skips verification altogether, allowing a man-in-the-middle attacker positioned to intercept traffic to present a crafted certificate and read or modify the traffic. This issue is fixed in version 0.47.0.

SeverityHigh
CVSS7.4
Exploit probability—
ProductYhirose Cpp-httplib
PublishedJul 10, 2026
First seenJul 10, 2026
Weakness typeCWE-295CWE-295

How to fix

Update
  • yhirose cpp-httplib0.47.0 or later

Affected products

ProductAffected versionsFixed in
yhirose cpp-httplib0.31.0 ≤ v < 0.47.00.47.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.