CVE-2022-23607: Unsafe handling of user-specified cookies in treq
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.4152%
CWE
Published
2/1/2022
Updated
11/13/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
treq | pip | < 22.1.0 | 22.1.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from request methods (treq.get, treq.post, HTTPClient.request) accepting cookie dictionaries without domain binding. The commit diff shows cookies were previously converted via cookiejar_from_dict (domain-agnostic), replaced with _scoped_cookiejar_from_dict to enforce domain binding. All methods funnel through HTTPClient.request, making it the core vulnerable function. The public treq.get/post methods inherit this vulnerability as they delegate to HTTPClient.