{"id":"CVE-2026-61652","published":"2026-09-21T21:13:26Z","modified":"2026-09-22T14:41:07Z","title":"Zapros: Streaming decoders ignored the requested chunk size, allowing a single compressed response chunk to allocate…","vendor":"kap-sh","product":"zapros","tier":"tail","description":{"text":"Zapros, a Python HTTP client, prior to version 0.14.0 is vulnerable to denial of service via memory exhaustion. The issue affects all callers who streamed compressed responses relying on the chunk size — explicit (`iter_bytes(chunk_size=...)`) or the default — to bound memory. The decoder ignored that bound, so a chunk could be far larger than requested and a single compressed response could overflow memory. Version 0.14.0 contains a patch. Some workarounds are available. Read the still-compressed body with `Response.iter_raw()` / `Response.async_iter_raw()`, which bypass the built-in decoders, and decompress it yourself with an explicit output-size bound (e.g. `zlib`'s `max_length`), aborting once a configured limit is exceeded. Where feasible, send `Accept-Encoding: identity` to disable response compression so bodies are not decompressed client-side. Avoid decoding response bodies from untrusted servers.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00436,"percentile":0.38734,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/kap-sh/zapros/security/advisories/GHSA-6cp7-3m3c-5x5c","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.8,"factors":[{"name":"EPSS percentile","points":7.75},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"kap-sh","affectedVersions":[{"vendor":"kap-sh","product":"zapros","versions":["< 0.14.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-22T14:39:06.743797Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"zapros","vulnerableRanges":["<0.14.0"],"patched":["0.14.0"],"from":["GHSA-6cp7-3m3c-5x5c","PYSEC-2026-4182"],"provenance":"source"}],"summary":{"text":"Zapros, a Python HTTP client, prior to version 0.14.0 has a denial-of-service flaw in its streaming decoders, which ignored the requested chunk size and could allocate far more memory than intended when handling compressed responses. An attacker who can make a server send a compressed response to a client that streams it (using explicit or default chunk sizes) can exhaust the client's memory with a single response, requiring no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:33Z"},"euvd":{"id":"EUVD-2026-84175","exploited":false,"provenance":"source"}}