Improper Certificate Validation in Cpp-httplib - CVE-2026-32627

 

Improper Certificate Validation in Cpp-httplib - CVE-2026-32627

Published: April 24, 2026


Vulnerability identifier: #VU127464
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-32627
CWE-ID: CWE-295
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Cpp-httplib Project
Affected software:
Cpp-httplib

Detailed vulnerability description

The vulnerability allows a remote attacker to intercept HTTPS connections and disclose sensitive information.

The vulnerability exists due to improper certificate validation in ClientImpl::create_redirect_client() in httplib.h when following an HTTPS redirect through a configured proxy. A remote attacker can return a crafted redirect response and present a forged or self-signed certificate to intercept HTTPS connections and disclose sensitive information.

Only builds with SSL support are affected, and exploitation requires the client to have a proxy configured with redirect following enabled.


How to mitigate CVE-2026-32627

Install security update from vendor's website.

Sources