8.7high
cpp-httplib has a Silent TLS Certificate Verification Bypass on HTTPS Redirect via Proxy
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| yhirose cpp-httplib | < 0.37.2, before 0.37.2 | CVE List, NVD |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
cpp-httplib es una biblioteca HTTP/HTTPS multiplataforma de C++11 de un solo archivo de cabecera. Antes de 0.37.2, cuando un cliente cpp-httplib está configurado con un proxy y set_follow_location(true), cualquier redirección HTTPS que siga tendrá la verificación de certificado TLS y de nombre de host silenciosamente deshabilitada en la nueva conexión. El cliente aceptará cualquier certificado presentado por el objetivo de redirección — caducado, autofirmado o falsificado — sin generar un error o notificar a la aplicación. Un atacante de red en posición de devolver una respuesta de redirección puede interceptar completamente la conexión HTTPS de seguimiento, incluyendo cualquier credencial o tokens de sesión en tránsito. Esta vulnerabilidad está corregida en 0.37.2.
References
| https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-c3h8-fqq4-xm4g | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32627 changed 2026-03-16 | CVE Terms of Use |
| NVD | CVE-2026-32627 changed 2026-06-17 | Public domain |