CVE-2026-33745: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in yhirose cpp-httplib
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.
AI Analysis
Technical Summary
The cpp-httplib C++ HTTP/HTTPS client library versions before 0.39.0 improperly forward stored authentication credentials in the Authorization header to arbitrary hosts when following cross-origin HTTP redirects (status codes 301, 302, 307, 308). This behavior can be exploited by a malicious or compromised server to redirect the client to an attacker-controlled host, thereby exposing sensitive credentials in plaintext. The vulnerability is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and has a CVSS 3.1 base score of 7.4, indicating high severity. The issue is resolved in version 0.39.0 of cpp-httplib.
Potential Impact
An attacker controlling or compromising a server that the client connects to can cause the client to follow a redirect to a malicious host and leak sensitive authentication credentials (Basic Auth, Bearer Token, Digest Auth) in plaintext. This exposure can lead to unauthorized access to protected resources or services that rely on these credentials. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade to cpp-httplib version 0.39.0 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed by the version update information.
CVE-2026-33745: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in yhirose cpp-httplib
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The cpp-httplib C++ HTTP/HTTPS client library versions before 0.39.0 improperly forward stored authentication credentials in the Authorization header to arbitrary hosts when following cross-origin HTTP redirects (status codes 301, 302, 307, 308). This behavior can be exploited by a malicious or compromised server to redirect the client to an attacker-controlled host, thereby exposing sensitive credentials in plaintext. The vulnerability is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and has a CVSS 3.1 base score of 7.4, indicating high severity. The issue is resolved in version 0.39.0 of cpp-httplib.
Potential Impact
An attacker controlling or compromising a server that the client connects to can cause the client to follow a redirect to a malicious host and leak sensitive authentication credentials (Basic Auth, Bearer Token, Digest Auth) in plaintext. This exposure can lead to unauthorized access to protected resources or services that rely on these credentials. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade to cpp-httplib version 0.39.0 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed by the version update information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-23T17:34:57.562Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69c5da053c064ed76f01c43f
Added to database: 3/27/2026, 1:14:45 AM
Last enriched: 4/3/2026, 12:57:21 PM
Last updated: 5/11/2026, 5:19:12 AM
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.