{"cve":"CVE-2022-23607","nvd":{"published":"2022-02-01T11:15:11.557","modified":"2026-06-17T04:30:28.133","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-425","CWE-200"],"references":["https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc","https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html","https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc","https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html"],"products":["debian:debian_linux","twistedmatrix:treq"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-23607","score":0.01083,"percentile":0.65189,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fhpf-pp6p-55qc","url":"https://osv.dev/vulnerability/GHSA-fhpf-pp6p-55qc","summary":"Unsafe handling of user-specified cookies in treq","modified":"2024-11-13T23:23:04.346646Z","packages":[{"ecosystem":"PyPI","name":"treq","purl":"pkg:pypi/treq","ranges":["<22.1.0"],"fixed":["22.1.0"]}]},{"id":"PYSEC-2022-26","url":"https://osv.dev/vulnerability/PYSEC-2022-26","summary":"","modified":"2023-11-08T04:08:24.827076Z","packages":[{"ecosystem":"PyPI","name":"treq","purl":"pkg:pypi/treq","ranges":[">=21.1.0 <22.1.0"],"fixed":["22.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}