CVE-2026-33745: cpp-httplib Client Leaks Authentication Credentials to Untrusted Hosts on Cross-Origin HTTP Redirect

Published Mar 27, 2026
·
Updated

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.

Affected Software

2 affected components
Yhirose Cpp-httplib<0.39.0
Yhirose Cpp-httplib<0.39.0

Event History

Mar 27, 2026
CVE Published
via MITRE·12:46 AM
Data Sourced
via MITRE·12:46 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-33745?

CVE-2026-33745 is considered a moderate severity vulnerability due to the potential exposure of sensitive authentication credentials.

2

How do I fix CVE-2026-33745?

To fix CVE-2026-33745, upgrade cpp-httplib to version 0.39.0 or later.

3

What types of credentials are leaked by CVE-2026-33745?

CVE-2026-33745 leaks Basic Auth, Bearer Token, and Digest Auth credentials to untrusted hosts on cross-origin HTTP redirects.

4

What impact does CVE-2026-33745 have on application security?

CVE-2026-33745 can lead to unauthorized access if authentication credentials are inadvertently sent to malicious servers.

5

Is my application vulnerable to CVE-2026-33745?

If you are using cpp-httplib version prior to 0.39.0, your application is vulnerable to CVE-2026-33745.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203