{"id":"CVE-2026-102944","aliases":["CVE-2026-102944"],"related":[],"kind":"vulnerability","state":"published","title":"cpp-httplib: Cookie header leaked on cross-origin redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-14T18:18:21.598Z","modified":"2026-10-16T20:04:29.760Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-522"],"affected":[{"ranges":[{"version":"< 0.51.0","status":"affected"}],"vendor":"yhirose","product":"cpp-httplib","source":"cvelist"}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-22mf-w2v3-r2jv","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/yhirose/cpp-httplib/releases/tag/v0.51.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-10-15T14:40:31.550Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-102944","url":"https://www.cve.org/CVERecord?id=CVE-2026-102944","licence":"CVE Terms of Use","modified":"2026-10-15T14:48:03.087Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-102944","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102944","licence":"Public domain","modified":"2026-10-16T20:04:29.760Z"}],"updatedAt":"2026-11-25T22:59:44.778Z","epss":{"score":0.00434,"percentile":0.3949,"date":"2026-12-01T12:00:22.000Z"}}