{"id":"CVE-2026-33745","aliases":["CVE-2026-33745"],"related":[],"kind":"vulnerability","state":"published","title":"cpp-httplib Client Leaks Authentication Credentials to Untrusted Hosts on Cross-Origin HTTP Redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"cpp-httplib es una biblioteca HTTP/HTTPS multiplataforma de un solo archivo y solo de encabezado C++11. Antes de 0.39.0, el cliente HTTP cpp-httplib reenvía las credenciales almacenadas de Basic Auth, Bearer Token y Digest Auth a hosts arbitrarios al seguir redirecciones HTTP de origen cruzado (301/302/307/308). Un servidor malicioso o comprometido puede redirigir al cliente a un host controlado por el atacante, que luego recibe las credenciales en texto plano en el encabezado 'Authorization'. La versión 0.39.0 corrige el problema.","source":"nvd"}],"published":"2026-03-27T00:46:48.941Z","modified":"2026-06-17T10:38:01.593Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"< 0.39.0","status":"affected"}],"vendor":"yhirose","product":"cpp-httplib","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.39.0"}],"vendor":"yhirose","product":"cpp-httplib","cpe":"cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-6hrp-7fq9-3qv2","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-03-31T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33745","url":"https://www.cve.org/CVERecord?id=CVE-2026-33745","licence":"CVE Terms of Use","modified":"2026-04-01T03:55:22.387Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33745","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33745","licence":"Public domain","modified":"2026-06-17T10:38:01.593Z"}],"updatedAt":"2026-11-25T22:59:17.359Z","epss":{"score":0.00298,"percentile":0.24121,"date":"2026-12-02T12:00:21.000Z"}}