CVE-2022-23607
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.
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Timeline
- 2022-02-01Published by the CNA11:01 UTC
- 2022-02-01GitHub advisory published (GHSA-fhpf-pp6p-55qc)same day
Exploit and advisory records
GitHub advisory GHSA-fhpf-pp6p-55qc, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI treq | before 22.1.0 | 22.1.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| twistedmatrix treq | from 21.1.0 before 22.1.0fixed in 22.1.0 | 22.1.0 |
| debian debian_linux | 9.0no fix listed | not listed |
References
- https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc
- https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-23607'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-23607'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-23607'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-23607'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).