CVE-2026-54919: cpp-httplib: TLS certificate chain verification bypassed for IP-literal hosts on Mbed TLS and wolfSSL backends

Published Jul 10, 2026
·
Updated

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 CPPHTTPLIBMBEDTLSSUPPORT or CPPHTTPLIBWOLFSSLSUPPORT 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 Software

3 affected components
cpp-httplib>=0.31.0<=0.46.1
cpp-httplib>=0.33.0<=0.46.1
Yhirose Cpp-httplib>=0.31.0<0.47.0

Event History

Jul 10, 2026
CVE Published
via MITRE·04:06 PM
Data Sourced
via MITRE·04:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-54919?

The severity of CVE-2026-54919 is rated as high with a score of 7.4.

2

How do I fix CVE-2026-54919?

To fix CVE-2026-54919, upgrade cpp-httplib to version 0.47.0 or later.

3

What does CVE-2026-54919 affect?

CVE-2026-54919 affects the cpp-httplib library when built with Mbed TLS or wolfSSL support.

4

What is the impact of CVE-2026-54919?

CVE-2026-54919 allows a TLS certificate chain verification bypass for IP-literal hosts.

5

Which versions of Mbed TLS and wolfSSL are vulnerable in CVE-2026-54919?

Affected Mbed TLS versions range from 0.31.0 to 0.46.1 and wolfSSL versions from 0.33.0 to 0.46.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203