PT-2022-16122 · Treq+1 · Treq+1

Published

2022-02-01

·

Updated

2025-05-17

·

CVE-2022-23607

CVSS v4.0

7.1

High

VectorAV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions treq versions prior to 2021.1.0
Description The treq library's request methods (treq.get, treq.post, etc.) and treq.client.HTTPClient constructor accept cookies as a dictionary. These cookies are not bound to a single domain and are sent to every domain, potentially causing sensitive information to leak upon an HTTP redirect to a different domain. For example, if https://example.com redirects to http://cloudstorageprovider.com, the latter will receive the session cookie.
Recommendations For versions prior to 2021.1.0, instead of passing a dictionary as the cookies argument, pass a http.cookiejar.CookieJar instance with properly domain- and scheme-scoped cookies in it. Upgrade to treq version 2021.1.0 or later, which binds cookies given to request methods to the origin of the url parameter.

Exploit

Fix

Information Disclosure

Open Redirect

Weakness Enumeration

Related Identifiers

CVE-2022-23607
DLA-2954-1
GHSA-FHPF-PP6P-55QC
OPENSUSE-SU-2022:10098-1
OPENSUSE-SU-2024:11806-1
OPENSUSE-SU-2025:15106-1
PYSEC-2022-26

Affected Products

Debian
Treq