CVE-2026-54919

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*

History

25 Oct 2026, 15:10

Type Values Removed Values Added
Summary
  • (es) cpp-httplib es una biblioteca HTTP/HTTPS multiplataforma de un solo archivo de cabecera para C++11. En las versiones afectadas del backend Mbed TLS desde la 0.31.0 hasta la 0.46.1 y las versiones del backend wolfSSL desde la 0.33.0 hasta la 0.46.1, cuando cpp-httplib se compila con CPPHTTPLIB_MBEDTLS_SUPPORT o CPPHTTPLIB_WOLFSSL_SUPPORT y un cliente se conecta a un host IP-literal con la verificación del certificado del servidor habilitada, SSLClient y Client en modo HTTPS omiten la validación de la cadena de certificados y WebSocketClient en el backend Mbed TLS omite la verificación por completo, permitiendo que un atacante man-in-the-middle posicionado para interceptar el tráfico presente un certificado manipulado y lea o modifique el tráfico. Este problema se corrige en la versión 0.47.0.

Information

Published : 2026-07-10 17:16

Updated : 2026-10-25 15:10


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