{
  "id": "CVE-2026-54919",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-54919",
  "published_at": "2026-07-10T16:06:12.848Z",
  "title": "cpp-httplib: TLS certificate chain verification bypassed for IP-literal hosts on Mbed TLS and wolfSSL backends",
  "vendor": "yhirose",
  "product": "cpp-httplib",
  "cvss": {
    "score": 7.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-295",
  "cpes": [
    "cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "yhirose",
        "product": "cpp-httplib",
        "ranges": [
          "\u003e= 0.31.0, \u003c 0.47.0"
        ],
        "fixed_in": [
          "0.47.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cpp-httplib to 0.47.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-8ffh-4p95-g3p2"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/yhirose/cpp-httplib/commit/fa981cedae004ea9d946f1392b9dec22fac6fee6"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/yhirose/cpp-httplib/releases/tag/v0.47.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
