Improper Certificate Validation in Cpp-httplib - CVE-2026-54919
Published: June 18, 2026
Vulnerability details
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.
Affected software
Fedora
cpp-httplib
How to mitigate CVE-2026-54919
cpp-httplib - addressed in versions 0.48.0-1.el9, 0.48.0-1.el10_3