What’s Vulnerable › Vulnerabilities
CVE-2026-54919: cpp-httplib: TLS certificate chain verification bypassed for IP-literal hosts on Mbed TLS and wolfSSL backends
- Severity: high (CVSS 7.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-10 · updated 2026-10-25
- Weakness: CWE-295
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.
Affected products
- yhirose cpp-httplib: from 0.31.0 before 0.47.0 — fixed in 0.47.0
How to fix
Upgrade to a fixed version: yhirose cpp-httplib 0.47.0. Check the vendor advisory for mitigations.
References
- https://github.com/yhirose/cpp-httplib/commit/fa981cedae004ea9d946f1392b9dec22fac6fee6
- https://github.com/yhirose/cpp-httplib/releases/tag/v0.47.0
- https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-8ffh-4p95-g3p2
Get alerted when CVE-2026-54919 or the next vulnerability affects your stack