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: 9.1 [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]
CVE-ID: CVE-2026-32627
CWE-ID: CWE-295
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Cpp-httplib
Fedora
openEuler
cpp-httplib
cpp-httplib-debuginfo
cpp-httplib-devel
cpp-httplib-debugsource

How to mitigate CVE-2026-32627

Install security update from vendor's website.

Cpp-httplib - update to 0.37.2
cpp-httplib - addressed in versions 0.37.2-1.el9, 0.37.2-1.fc42, 0.38.0-1.el10_3, 0.38.0-1.fc43, 0.38.0-1.fc44, 0.38.0-1.fc45
cpp-httplib-debuginfo - update to 0.38.0-1
cpp-httplib-devel - update to 0.38.0-1
cpp-httplib-debugsource - update to 0.38.0-1
cpp-httplib - update to 0.38.0-1

External References

Related Security Bulletins