Improper Certificate Validation in Cpp-httplib - CVE-2026-54919
Published: June 18, 2026
Cpp-httplib
Detailed vulnerability description
The vulnerability allows a remote attacker to disclose sensitive information and modify transmitted data.
The vulnerability exists due to improper certificate validation in the TLS certificate verification logic of SSLClient, Client in HTTPS mode, and WebSocketClient when connecting to IP-literal hosts over the Mbed TLS or wolfSSL backends. A remote attacker can present a crafted certificate during a man-in-the-middle attack to disclose sensitive information and modify transmitted data.
Only builds using the Mbed TLS or wolfSSL backends are affected, and the issue occurs when connecting to a host specified as an IP literal rather than a DNS hostname.