cpp-httplib is a C++ header-only HTTP/HTTPS library. Prior to 0.51.0, create_redirect_client() removes Host, Proxy-Authorization, and Authorization headers when following a cross-origin 301, 302, 307, or 308 redirect but leaves Cookie headers attached. detail::redirect() copies the request for those redirect codes, so cookies supplied directly or through default_headers_ are sent to the redirect target. An attacker who controls a redirect response, or a network position for a non-HTTPS origin, can receive session cookies intended for the original origin. A 303 redirect is not affected because that path clears all request headers. This issue is fixed in version 0.51.0.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-522"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102944.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102944.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "158978366591480317483311759578189411696",
"length": 1436
},
"id": "CVE-2026-102944-4f55ba7e",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585",
"target": {
"file": "httplib.h",
"function": "ClientImpl::create_redirect_client"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"267773344545165521421771345405646178505",
"29453404087165895867028960871641504800",
"9163449636043926260013405780676487221"
],
"threshold": 0.9
},
"id": "CVE-2026-102944-b1d8dae5",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585",
"target": {
"file": "test/test.cc"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"83597438551692461233755986540604842440",
"63348776602853957190304769076966890588",
"186614463205869691452466185361475881249",
"887992791117469747503947117977419328",
"254236241194187803768142353551735392933"
],
"threshold": 0.9
},
"id": "CVE-2026-102944-df652b2a",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585",
"target": {
"file": "httplib.h"
}
}
]
"2026-10-16T07:07:53Z"