{"id":"CVE-2022-23607","summary":"Unsafe handling of user-specified cookies in treq","details":"treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain (\"supercookies\"). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it.","aliases":["GHSA-fhpf-pp6p-55qc","PYSEC-2022-26"],"modified":"2026-04-02T07:48:52.488868Z","published":"2022-02-01T11:01:07Z","related":["openSUSE-SU-2022:10098-1","openSUSE-SU-2024:11806-1","openSUSE-SU-2025:15106-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23607.json","cwe_ids":["CWE-200"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23607.json"},{"type":"ADVISORY","url":"https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23607"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/twisted/treq","events":[{"introduced":"606259031e17fb0cdd2143e11b988de525e89a3e"},{"fixed":"82f01e68e02bd52ddf09e352d73e0bcaff122727"}]}],"versions":["release-21.1.0","release-21.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23607.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}