Skip to main content
VulnerabilityPublished Updated

CVE-2026-32627: yhirose cpp-httplib · Improper Certificate Validation

Affects yhirose cpp-httplibSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.7 High : upgrade to 0.37.2 soon.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 3.1 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.37.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade cpp-httplib and yhirose/cpp-httplib to 0.37.2.

Affected software

ProductAffectedFixed in
yhirosecpp-httplibAffected
  • <0.37.2
Fixed in
  • 0.37.2
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threatsAffected
  • <0.37.2
Fixed in
  • 0.37.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Immediate mitigation requires upgrading cpp-httplib to version 0.37.2 or later where the certificate validation bug is fixed. Until upgrade is possible, organizations should disable automatic redirect following (set_follow_location(false)) when using proxies to prevent the vulnerable code path. Network defenses such as strict proxy controls, TLS interception detection, and network segmentation can reduce exposure to man-in-the-middle attackers. Application developers should audit their use of cpp-httplib to confirm proxy and redirect configurations and ensure TLS verification is enforced. Employing additional TLS validation layers or certificate pinning at the application level can provide defense in depth. Monitoring network traffic for unexpected redirects and anomalous TLS certificates can help detect exploitation attempts. Finally, educating developers and security teams about this specific vulnerability and its conditions is critical to prevent misconfiguration and exploitation.

Description

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.37.2, when a cpp-httplib client is configured with a proxy and set_follow_location(true), any HTTPS redirect it follows will have TLS certificate and hostname verification silently disabled on the new connection. The client will accept any certificate presented by the redirect target — expired, self-signed, or forged — without raising an error or notifying the application. A network attacker in a position to return a redirect response can fully intercept the follow-up HTTPS connection, including any credentials or session tokens in flight. This vulnerability is fixed in 0.37.2.

References

Community reviews

Loading reviews…