CVE-2026-61541

Zapros has an Unbounded Content-Encoding decompression chain that allows denial of service

Published Sep 21, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Zapros, a Python HTTP client, can be forced into a denial of service by a malicious response that includes an unbounded chain of Content‑Encoding headers. When the client follows a redirect or accepts data from an untrusted server, each layer of the encoding is decompressed, creating a deeply nested chain that consumes CPU and memory resources. The flaw is rated CVSS 6.9 and identified as CWE‑770, meaning it allows an attacker to exhaust system resources without authentication. The consequence is an application or service outage when the exhaustion occurs.

Affected Systems

All installations of zapros prior to version 0.14.0 on any operating system are affected, regardless of how the client is used. The issue arises when the client receives responses from untrusted servers or follows redirects to external sites. Version 0.14.0 and later include a fix that limits encoding layers to five and raises a DecodingError when the limit is exceeded.

Risk and Exploitability

The CVSS score of 6.9 suggests a moderate severity. EPSS is not available and the vulnerability is not listed in CISA KEV. The likely attack vector is a malicious HTTP server or a compromised upstream service returning a response with many chained Content‑Encoding headers. Because the flaw is triggered by user input (the server response), any application that uses zapros to fetch data from untrusted sources is at risk until the client is hardened or updated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to zapros 0.14.0 or later, which enforces a five‑layer limit and returns a DecodingError when exceeded.
  • If an upgrade cannot be made immediately, add a response middleware that inspects the Content‑Encoding header and blocks responses containing more than a safe number of layers, such as five.
  • Configure the client or network stack to disable automatic redirects from untrusted origins or otherwise restrict which external servers zapros may contact.

Generated by OpenCVE AI on September 21, 2026 at 22:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5vjj-2r48-q622 Zapros has an Unbounded Content-Encoding decompression chain that allows denial of service
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Kap-sh
Kap-sh zapros
Vendors & Products Kap-sh
Kap-sh zapros
Type Values Removed Values Added
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.
Title Zapros has an Unbounded Content-Encoding decompression chain that allows denial of service
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 6.9, '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'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 23, 2026, 7:07 PM
Reserved
Jul 10, 2026, 4:27 PM
Status
Deferred
Published
Sep 21, 2026, 10:16 PM
Modified
Sep 30, 2026, 5:32 PM