# CVE-2026-102944: cpp-httplib: Cookie header leaked on cross-origin redirect

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-14T18:18:21.598Z
- Modified: 2026-10-16T20:04:29.760Z
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- yhirose cpp-httplib: < 0.51.0

## References

- <https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-22mf-w2v3-r2jv> (exploit)
- <https://github.com/yhirose/cpp-httplib/commit/0c1cc8c9866bb567ff11c1cd0d09779e8c5f8585>
- <https://github.com/yhirose/cpp-httplib/releases/tag/v0.51.0>

## Sources

- CVE List: [CVE-2026-102944](https://www.cve.org/CVERecord?id=CVE-2026-102944), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-102944](https://nvd.nist.gov/vuln/detail/CVE-2026-102944), Public domain, modified 2026-10-16

---

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