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.
References
| Link | Resource |
|---|---|
| https://github.com/yhirose/cpp-httplib/commit/fa981cedae004ea9d946f1392b9dec22fac6fee6 | Patch |
| https://github.com/yhirose/cpp-httplib/releases/tag/v0.47.0 | Product Release Notes |
| https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-8ffh-4p95-g3p2 | Mitigation Patch Vendor Advisory |
Configurations
History
14 Jul 2026, 01:31
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/yhirose/cpp-httplib/commit/fa981cedae004ea9d946f1392b9dec22fac6fee6 - Patch | |
| References | () https://github.com/yhirose/cpp-httplib/releases/tag/v0.47.0 - Product, Release Notes | |
| References | () https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-8ffh-4p95-g3p2 - Mitigation, Patch, Vendor Advisory | |
| CPE | cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:* | |
| First Time |
Yhirose
Yhirose cpp-httplib |
10 Jul 2026, 17:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-07-10 17:16
Updated : 2026-07-14 05:16
NVD link : CVE-2026-54919
Mitre link : CVE-2026-54919
CVE.ORG link : CVE-2026-54919
JSON object : View
Products Affected
yhirose
- cpp-httplib
CWE
CWE-295
Improper Certificate Validation
