Skip to main content

Cpp Httplib CVE-2026-32627

| EUVDEUVD-2026-12137 HIGH
Improper Certificate Validation (CWE-295)
2026-03-13 GitHub_M
8.7
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker intercepts initial HTTP request
  2. Exploit
    Returns redirect to attacker-controlled HTTPS server
  3. Execution
    cpp-httplib client follows redirect with disabled certificate verification
  4. Impact
    Attacker performs MITM attack and steals sensitive data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

cpp-httplib client with proxy configuration enabled AND set_follow_location(true) enabled AND application follows HTTPS redirects. Requires network position to intercept and respond with redirect.

Impact

Despite the high CVSS score (8.7), real-world risk appears moderate. The CVSS vector (AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N) indicates network-based attack requiring high complexity - specifically positioning to intercept proxy traffic and inject redirects. No KEV listing suggests no known active exploitation. EPSS data unavailable but typically low for library vulnerabilities. The 'Changed Scope' metric inflates the score as compromised connections affect resources beyond the vulnerable component. Priority should be based on whether applications use proxy+redirect configurations rather than raw CVSS.

Exploit ScenarioDerived

An attacker positioned between the client and proxy server (or controlling a malicious proxy) waits for HTTPS requests. When receiving a request, they respond with an HTTP redirect to an attacker-controlled HTTPS server presenting an invalid certificate. The cpp-httplib client silently accepts this certificate and establishes an encrypted connection with the attacker's server, allowing full interception of sensitive data like authentication tokens or API keys. No public POC exists, requiring sophisticated network positioning to exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 13, 2026

cpp-httplib versions before 0.37.2 silently disable TLS certificate validation when following HTTPS redirects through a proxy, allowing attackers to intercept encrypted connections without detection. This affects any application using cpp-httplib as an HTTP client with proxy and redirect following enabled. No active exploitation (not in KEV) or public POC has been reported, with low EPSS probability indicating minimal current threat activity.

RemediationAI

Upgrade to cpp-httplib version 0.37.2 or later, which fixes the certificate validation issue. For applications unable to upgrade immediately, disable either proxy usage or set_follow_location(false) to prevent the vulnerable code path. Review the vendor advisory at https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-c3h8-fqq4-xm4g for detailed patch information.

Affected VersionsENISA

cpp-httplib < 0.37.2

Affected Packages

euvd cpp_httplib fix: 0.37.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

cpp-httplib is a lightweight, header-only C++11 HTTP/HTTPS library (CPE: cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*). The vulnerability stems from improper certificate validation (CWE-295) when the client is configured with both a proxy server and set_follow_location(true). During HTTPS redirects, the library fails to maintain TLS security checks on the redirected connection, accepting any certificate including expired, self-signed, or attacker-controlled certificates without warning.

Know when Cpp Httplib gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.7 HIGH
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
SUSE HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Apr 16, 2026 - 05:29 EUVD
0.37.2
CVE Published
Mar 13, 2026 - 20:48 nvd
HIGH 8.7

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

cpp-httplib versions before 0.37.2 silently disable TLS certificate validation during HTTPS redirects through proxies, creating a man-in-the-middle exposure for any application using this library as an HTTP client. Organizations using cpp-httplib with proxy and redirect features enabled risk undetected interception of encrypted communications, potentially exposing sensitive data in transit.

Business Impact: High
Compensating Controls

Apply vendor patch (upgrade to cpp-httplib 0.37.2 or later). If immediate patching is not feasible, disable proxy-based HTTPS redirect following in affected applications and route traffic through a dedicated TLS-terminating proxy with independent certificate validation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-66570 CRITICAL POC
10.0 Dec 05

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.27.0, a vulnerability allow

CVE-2025-53628 HIGH POC
8.8 Jul 10

CVE-2025-53628 is a memory exhaustion vulnerability in cpp-httplib versions prior to 0.20.1 that allows unauthenticated

CVE-2025-46728 HIGH POC
7.5 May 06

cpp-httplib is a C++ header-only HTTP/HTTPS server and client library. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2025-52887 HIGH POC
7.5 Jun 26

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. In version 0.21.0, when many http head

CVE-2025-53629 HIGH POC
7.5 Jul 10

CVE-2025-53629 is a Denial of Service vulnerability in cpp-httplib versions prior to 0.23.0 that allows unauthenticated

CVE-2026-22776 HIGH POC
7.5 Jan 12

cpp-httplib versions prior to 0.30.1 are vulnerable to denial of service attacks due to insufficient validation of decom

CVE-2026-28435 HIGH POC
7.5 Mar 04

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. [CVSS 7.5 HIGH]

CVE-2026-21428 HIGH POC
7.5 Jan 01

Cpp-Httplib versions up to 0.30.0 contains a vulnerability that allows attackers to add extra headers, modify request bo

CVE-2020-11709 HIGH POC
7.5 Apr 12

cpp-httplib through 0.5.8 does not filter \r\n in parameters passed into the set_redirect and set_header functions, whic

CVE-2026-45372 CRITICAL
9.9 May 29

HTTP response/header injection in cpp-httplib server versions prior to 0.44.0 allows remote unauthenticated attackers to

CVE-2026-29076 MEDIUM POC
5.9 Mar 07

Remote denial of service in cpp-httplib prior to version 0.37.0 allows unauthenticated attackers to crash server process

CVE-2025-66577 MEDIUM POC
5.3 Dec 05

A security vulnerability in cpp-httplib (CVSS 5.3) that allows attacker-controlled http headers. Risk factors: public Po

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Server 16.0 Fixed
SUSE Linux Enterprise Server 16.1 Fixed
SUSE Linux Enterprise Server for SAP applications 16.0 Fixed
SUSE Linux Enterprise Server for SAP applications 16.1 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy