Skip to main content

Cpp Httplib EUVDEUVD-2026-16515

| CVE-2026-33745 HIGH
Information Exposure (CWE-200)
2026-03-27 GitHub_M
7.4
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Malicious server sends HTTP redirect (301/302/307/308)
  2. Exploit
    Client follows redirect to attacker host
  3. Execution
    Client forwards stored credentials in Authorization header
  4. Impact
    Attacker captures plaintext credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

cpp-httplib versions prior to 0.39.0 with HTTP client following cross-origin redirects (301/302/307/308). Requires the application to store and use Basic Auth, Bearer Token, or Digest Auth credentials. Attacker-controlled server performs redirect to capture plaintext credentials. No victim interaction needed beyond normal HTTP client operation.

Impact

The CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N vector indicates network-exploitable attack requiring no privileges or user interaction, but with high attack complexity. The AC:H rating reflects the need for a man-in-the-middle position or control of a server the victim client connects to, limiting opportunistic exploitation. Real-world risk is elevated for applications using cpp-httplib to communicate with untrusted or semi-trusted APIs where redirect responses could be injected or manipulated. The C:H/I:H ratings are justified since credential leakage enables both information disclosure and potential account takeover. No public exploit identified at time of analysis and no CISA KEV listing reduces immediate urgency, but the straightforward nature of redirect manipulation in controlled scenarios suggests exploitation is feasible for motivated attackers with appropriate positioning. Organizations using this library in client applications connecting to external services should prioritize patching.

Exploit ScenarioDerived

An attacker compromises or operates a malicious API endpoint that a cpp-httplib client application connects to with stored authentication credentials. When the client sends an authenticated request, the malicious server responds with an HTTP 302 redirect to an attacker-controlled domain. The vulnerable cpp-httplib client automatically follows the redirect while forwarding the original Authorization header containing plaintext credentials, allowing the attacker to harvest valid authentication tokens or passwords for use in account takeover or lateral movement attacks.

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 27, 2026

The cpp-httplib HTTP/HTTPS client library (versions prior to 0.39.0) leaks authentication credentials to arbitrary third-party servers when following cross-origin HTTP redirects. An attacker operating a malicious server can issue a 301/302/307/308 redirect to capture plaintext Basic Auth, Bearer Token, or Digest Auth credentials from the Authorization header. CVSS score of 7.4 reflects high confidentiality and integrity impact with network attack vector and high complexity; no public exploit identified at time of analysis.

RemediationAI

Upgrade cpp-httplib to version 0.39.0 or later, which implements proper credential stripping during cross-origin redirects. The vendor-released patch is available as version 0.39.0 per the GitHub security advisory at https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-6hrp-7fq9-3qv2. For applications unable to upgrade immediately, implement application-layer controls including disabling automatic redirect following and handling redirects manually with explicit credential management logic, validating redirect target origins against an allowlist before retransmitting authentication headers, or using per-origin credential storage rather than global client-level authentication. Review application logs for unexpected cross-origin redirect sequences that may indicate historical credential exposure.

Affected VersionsENISA

cpp-httplib < 0.39.0

Affected Packages

euvd cpp_httplib fix: 0.39.0

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 single-file header-only C++11 cross-platform HTTP/HTTPS library maintained by yhirose. The affected product is identified via CPE cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*. The vulnerability represents CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) where the HTTP client implementation fails to strip authorization credentials when processing cross-origin redirects. RFC 7235 best practices recommend clients avoid sending credentials to different origins, but the library's redirect handling logic did not implement this protection, causing stored authentication material to persist across domain boundaries during automatic redirect following.

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 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/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
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 27, 2026 - 00:46 nvd
HIGH 7.4

DescriptionGitHub Advisory

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.39.0, the cpp-httplib HTTP client forwards stored Basic Auth, Bearer Token, and Digest Auth credentials to arbitrary hosts when following cross-origin HTTP redirects (301/302/307/308). A malicious or compromised server can redirect the client to an attacker-controlled host, which then receives the plaintext credentials in the Authorization header. Version 0.39.0 fixes the issue.

Executive ViewAI

Why It Matters

Applications using cpp-httplib versions prior to 0.39.0 are vulnerable to credential theft when processing HTTP redirects to attacker-controlled servers. An attacker can intercept plaintext authentication credentials (Basic Auth, Bearer tokens, or Digest Auth) by redirecting legitimate client requests, enabling unauthorized access to downstream systems and data. Organizations relying on this library for API clients, service integrations, or internal tools face immediate risk of credential compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict HTTP redirects at application level-disable automatic cross-origin redirect following or validate redirect targets against whitelist; (2) Use network segmentation to limit client access to trusted servers only and prevent unexpected outbound connections; (3) Enforce HTTPS for all authentication-carrying requests and reject HTTP redirects; (4) Deploy WAF rules to detect and block redirect responses from untrusted or unexpected hosts; (5) Monitor HTTP redirect patterns and credential transmission logs for anomalous activity; (6) Consider moving authentication to request headers validated server-side rather than relying on client-side credential forwarding.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
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
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