CVE-2026-61652: Zapros Memory Exhaustion Vulnerability Due to Ignored Chunk Size

zapros Updated 23 Sep 2026

Summary

23/09/2026
Yes i
High
8.7

CVE-2026-61652: Impact Denial of service via memory exhaustion. Affects zapros versions < 0.14.0. Fixed in 0.14.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Zapros is a Python library designed for making HTTP requests with a focus on streaming responses. It allows users to handle large data transfers efficiently by processing data in chunks. However, a critical vulnerability has been identified that affects its ability to manage memory effectively when dealing with compressed responses, potentially leading to denial of service through memory exhaustion.

Vulnerability Detail

The vulnerability arises from the way Zapros handles streaming decoders for compressed responses. Specifically, the library ignores the requested chunk size, allowing a single compressed response chunk to allocate unbounded memory. This can lead to a situation where a compressed response, which is expected to be limited in size, instead consumes excessive memory, resulting in a denial of service. The issue affects all users who rely on streamed compressed responses, whether they specify a chunk size or use the default settings.

How To Fix

Latest published version: 0.22.0 as of 22 Oct 2026

pip install --upgrade "zapros==0.22.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.14.0

This is the first release that contains the fix.

pip install --upgrade "zapros==0.14.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

For users unable to upgrade to the patched version, the following workarounds are recommended:

  1. Read the still-compressed body using 'Response.iter_raw()' or 'Response.async_iter_raw()' to bypass the built-in decoders. You can then decompress it manually with an explicit output-size bound, such as using zlib's max_length.
  2. If feasible, send 'Accept-Encoding: identity' in the request headers to disable response compression, ensuring that bodies are not decompressed client-side. Example code for manual decompression:
import zlib

response = zapros.stream("GET", "https://malicious.example/bomb")
compressed_data = response.iter_raw()

# Decompress with a size limit
try:
    decompressed_data = zlib.decompress(compressed_data, max_length=8192)
except zlib.error:
    print('Decompression exceeded size limit.')

Conclusion

The Zapros library has a critical vulnerability (CVE-2026-61652) that can lead to memory exhaustion due to improper handling of compressed response chunk sizes. Users are strongly advised to upgrade to version 0.14.0 or later to mitigate this risk. Workarounds are available for those unable to upgrade immediately.

See every vulnerability recorded for zapros →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The primary consequence is denial of service due to memory exhaustion, which can lead to application crashes or unresponsiveness.

Yes, you can implement workarounds such as reading the compressed body with 'Response.iter_raw()' and decompressing it manually with size limits.

All versions of Zapros prior to 0.14.0 are affected by this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for zapros.

How To Fix

Latest published version: 0.22.0 as of 22 Oct 2026

pip install --upgrade "zapros==0.22.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.14.0

This is the first release that contains the fix.

pip install --upgrade "zapros==0.14.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback