# CVE-2026-61652: Zapros: Streaming decoders ignored the requested chunk size, allowing a single compressed response chunk to allocate unbounded memory (decompression bomb)

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-02)
- Published: 2026-09-21T21:13:26.969Z
- Modified: 2026-10-01T17:55:49.149Z
- Also known as: GHSA-6cp7-3m3c-5x5c, PYSEC-2026-4182
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- kap-sh zapros: < 0.14.0
- zapros (PyPI): before 0.14.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/kap-sh/zapros/security/advisories/GHSA-6cp7-3m3c-5x5c> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61652> (advisory)
- <https://github.com/kap-sh/zapros/commit/9b59fa65857734599c34b0b3dff4c2b62293a68d> (web)
- <https://github.com/kap-sh/zapros> (package)
- <https://github.com/kap-sh/zapros/releases/tag/v0.14.0> (web)
- <https://pypi.org/project/zapros> (package)
- <https://github.com/advisories/GHSA-6cp7-3m3c-5x5c> (advisory)

## Sources

- CVE List: [CVE-2026-61652](https://www.cve.org/CVERecord?id=CVE-2026-61652), CVE Terms of Use, modified 2026-09-22
- GitHub Advisory Database: [GHSA-6cp7-3m3c-5x5c](https://github.com/advisories/GHSA-6cp7-3m3c-5x5c), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-61652](https://nvd.nist.gov/vuln/detail/CVE-2026-61652), Public domain, modified 2026-09-24
- PyPA Advisory Database: [PYSEC-2026-4182](https://osv.dev/vulnerability/PYSEC-2026-4182), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-61652 · Whole record: https://cve.day/CVE-2026-61652.json · Rebuilt by cve.day 2026-11-25T22:59:40.398Z
