Zapros, a Python HTTP client, prior to version 0.14.0 is vulnerable to denial of service when an application requests content from an untrusted server, or follows a redirect to one, because a malicious response containing an excessive number of chained `Content-Encoding` values causes Zapros to construct a deeply nested decompression chain that consumes excessive resources. Version 0.14.0 patches the vulnerability by limiting responses to five content-encoding layers and raising `DecodingError` when that limit is exceeded. As a workaround, applications can add response middleware that inspects the `Content-Encoding` header and rejects responses containing more than a safe number of encoding layers.
PUBLISHED5.2CWE-770
Zapros has an Unbounded Content-Encoding decompression chain that allows denial of service
Problem type
Affected products
kap-sh
zapros
< 0.14.0 - AFFECTED
References
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-61541Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-61541",
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"dateUpdated": "2026-09-21T21:21:21.321Z",
"dateReserved": "2026-07-10T16:27:03.093Z",
"datePublished": "2026-09-21T21:21:21.321Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M",
"dateUpdated": "2026-09-21T21:21:21.321Z"
},
"title": "Zapros has an Unbounded Content-Encoding decompression chain that allows denial of service",
"descriptions": [
{
"lang": "en",
"value": "Zapros, a Python HTTP client, prior to version 0.14.0 is vulnerable to denial of service when an application requests content from an untrusted server, or follows a redirect to one, because a malicious response containing an excessive number of chained `Content-Encoding` values causes Zapros to construct a deeply nested decompression chain that consumes excessive resources. Version 0.14.0 patches the vulnerability by limiting responses to five content-encoding layers and raising `DecodingError` when that limit is exceeded. As a workaround, applications can add response middleware that inspects the `Content-Encoding` header and rejects responses containing more than a safe number of encoding layers."
}
],
"affected": [
{
"vendor": "kap-sh",
"product": "zapros",
"versions": [
{
"version": "< 0.14.0",
"status": "affected"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-770: Allocation of Resources Without Limits or Throttling",
"cweId": "CWE-770",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/kap-sh/zapros/security/advisories/GHSA-5vjj-2r48-q622",
"name": "https://github.com/kap-sh/zapros/security/advisories/GHSA-5vjj-2r48-q622",
"tags": [
"x_refsource_CONFIRM"
]
}
],
"metrics": [
{}
]
}
}
}