# CVE-2022-23607: python-treq: treq is an HTTP library inspired by requests but written on top of Twisted's Agents

CVE-2022-23607 is fixed in python-treq on 1 platform, first by DEBIAN-CVE-2022-23607, released February 1, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-23607
- Priority: Routine
- CVSS: 6.5 (medium)
- EPSS: 0.0108
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 1, 2022

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-treq Debian 12.15 (bookworm) | 22.2.0-0.1 | [DEBIAN-CVE-2022-23607](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23607.md) | Feb 1, 2022 |
| Linux | python-treq Debian 13.5 (trixie) | 22.2.0-0.1 | [DEBIAN-CVE-2022-23607](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23607.md) | Feb 1, 2022 |
| Linux | python-treq Debian 14 | 22.2.0-0.1 | [DEBIAN-CVE-2022-23607](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23607.md) | Feb 1, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
