CVE-2022-23607
published medium CVSS 3.1 · 6.5Unsafe handling of user-specified cookies in treq
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| twisted | — | treq< 22.1.0 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | py3-treq | Fixed | 22.1.0-r0 | Package fix record |
| Debian | stretch | python-treq | Advisory build | 15.1.0-1+deb9u1 | DLA-2954-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-treqnoarch | Advisory build | 20.3.0-bp153.2.3.1 | OPENSUSE-SU-2022:10098-1 |
| Alpine Linux | v3.24 | py3-treq | Fixed | 22.1.0-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-treqnoarch | Advisory build | 20.3.0-bp153.2.3.1 | OPENSUSE-SU-2022:10098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-treqaarch64 | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-treqppc64le | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
Show 22 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-treqs390x | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-treqx86_64 | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-treqaarch64 | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-treqppc64le | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-treqs390x | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-treqx86_64 | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-treqaarch64 | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-treqppc64le | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-treqs390x | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-treqx86_64 | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-treqaarch64 | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-treqppc64le | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-treqs390x | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-treqx86_64 | Advisory build | 24.9.1-1.4 | OPENSUSE-SU-2025:15106-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-treqaarch64 | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-treqppc64le | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-treqs390x | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-treqx86_64 | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-treqaarch64 | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-treqppc64le | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-treqs390x | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-treqx86_64 | Advisory build | 22.1.0-1.1 | OPENSUSE-SU-2024:11806-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| twisted | treq | < 22.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
References
2- https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc
- [debian-lts-announce] 20220318 [SECURITY] [DLA 2954-1] python-treq security update https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html
Provider assertions
2GitHub_M · cna
Unsafe handling of user-specified cookies in treq
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3343056ae78c5717a6aa232ab313823edd7556c5d8aa7b14be304b502e0d6431
- Ingested
- 23 Sep 2026, 07:58:41 UTC
- Source record
- Official CVE record