python-treq — security advisory
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.
- Products
- python-treq
- Affected versions
- 15.1.0-1, 18.6.0-0.1, 18.6.0-0.2, 22.2.0-0.1, 24.9.1-1, 25.5.0-1, 25.5.0-2, 26.7.0-1, 26.7.0-2
- Fixed versions
- Not specified
- CVEs
- CVE-2022-23607
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:45 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2022-23607
python-treq
Fixed versions: Not specified
python-treq
Fixed versions: Not specified
python-treq
Fixed versions: Not specified
python-treq
Fixed versions: Not specified
python-treq
Fixed versions: Not specified
python-treq
Fixed versions: Not specified
python-treq
Fixed versions: Not specified
Complete source record
{
"id": "936ee701d66abae33e52c17a1093e448a4b3dde76e8db41921aae33d99ebeaae",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-23607",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-23607",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2022-23607",
"products": [
{
"name": {
"value": "python-treq",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "15.1.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-treq",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "18.6.0-0.1",
"evidence": "/affected/1/versions"
},
{
"value": "18.6.0-0.2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-treq",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "18.6.0-0.2",
"evidence": "/affected/2/versions"
},
{
"value": "22.2.0-0.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "python-treq",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "22.2.0-0.1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "python-treq",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "24.9.1-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "python-treq",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "25.5.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "25.5.0-2",
"evidence": "/affected/5/versions"
},
{
"value": "26.7.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "26.7.0-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "python-treq",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "24.9.1-1",
"evidence": "/affected/6/versions"
},
{
"value": "25.5.0-1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2022-23607",
"aliases": [
"UBUNTU-CVE-2022-23607"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-treq",
"purl": "pkg:deb/ubuntu/python-treq?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"15.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-treq",
"binary_version": "15.1.0-1"
},
{
"binary_name": "python3-treq",
"binary_version": "15.1.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-treq",
"purl": "pkg:deb/ubuntu/python-treq?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"18.6.0-0.1",
"18.6.0-0.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-treq",
"binary_version": "18.6.0-0.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-treq",
"purl": "pkg:deb/ubuntu/python-treq?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"18.6.0-0.2",
"22.2.0-0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-treq",
"binary_version": "22.2.0-0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-treq",
"purl": "pkg:deb/ubuntu/python-treq?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"22.2.0-0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-treq",
"binary_version": "22.2.0-0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-treq",
"purl": "pkg:deb/ubuntu/python-treq?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"24.9.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-treq",
"binary_version": "24.9.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-treq",
"purl": "pkg:deb/ubuntu/python-treq?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"25.5.0-1",
"25.5.0-2",
"26.7.0-1",
"26.7.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-treq",
"binary_version": "26.7.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-treq",
"purl": "pkg:deb/ubuntu/python-treq?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"24.9.1-1",
"25.5.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-treq",
"binary_version": "25.5.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:02.196323122Z",
"provider": "osv",
"upstream": [
"CVE-2022-23607"
],
"references": [
"https://ubuntu.com/security/CVE-2022-23607",
"https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc",
"https://github.com/twisted/treq/commit/1da6022cc880bbcff59321abe02bf8498b89efb2",
"https://www.cve.org/CVERecord?id=CVE-2022-23607"
]
},
"related_cves": [
{
"value": "CVE-2022-23607",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354632,
"published_at": "2022-02-01T11:15:00+00:00"
}