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

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T00:46:48.941Z
- Modified: 2026-06-17T10:38:01.593Z
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- yhirose cpp-httplib: < 0.39.0; before 0.39.0

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-6hrp-7fq9-3qv2> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-33745](https://www.cve.org/CVERecord?id=CVE-2026-33745), CVE Terms of Use, modified 2026-04-01
- NVD: [CVE-2026-33745](https://nvd.nist.gov/vuln/detail/CVE-2026-33745), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33745 · Whole record: https://cve.day/CVE-2026-33745.json · Rebuilt by cve.day 2026-11-25T22:59:17.359Z
