{"id":"CVE-2026-102944","state":"PUBLISHED","title":"cpp-httplib: Cookie header leaked on cross-origin redirect","description":"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.","publishedAt":"2026-10-14T18:18:21.598Z","updatedAt":"2026-10-15T14:48:03.087Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["yhirose cpp-httplib"],"affected":[{"vendor":"yhirose","product":"cpp-httplib","versions":[{"version":"< 0.51.0","status":"affected"}]}],"references":["https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-22mf-w2v3-r2jv","https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585","https://github.com/yhirose/cpp-httplib/releases/tag/v0.51.0"],"weaknesses":["CWE-522"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/102xxx/CVE-2026-102944.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-102944","state":"PUBLISHED","datePublished":"2026-10-14T18:18:21.598Z","dateUpdated":"2026-10-15T14:48:03.087Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-29T20:24:43.341Z"},"containers":{"cna":{"title":"cpp-httplib: Cookie header leaked on cross-origin redirect","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"yhirose","product":"cpp-httplib","versions":[{"version":"< 0.51.0","status":"affected"}]}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-22mf-w2v3-r2jv","name":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-22mf-w2v3-r2jv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585","name":"https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585","tags":["x_refsource_MISC"]},{"url":"https://github.com/yhirose/cpp-httplib/releases/tag/v0.51.0","name":"https://github.com/yhirose/cpp-httplib/releases/tag/v0.51.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-522","lang":"en","description":"CWE-522: Insufficiently Protected Credentials","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-14T18:18:21.598Z"},"source":{"advisory":"GHSA-22mf-w2v3-r2jv","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-22mf-w2v3-r2jv","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-15T14:40:31.550021Z","id":"CVE-2026-102944","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T14:48:03.087Z"}}]}}}