aiosonic is vulnerable to Denial of Service (DoS)
59
Medium Risk
aiosonic transparently decompresses Content-Encoding: gzip and deflate response bodies with one-shot gzip.decompress()/zlib.decompress() calls over the entire buffer and no output-size limit. A malicious or compromised server can return a small compressed payload that inflates to hundreds of megabytes or gigabytes, exhausting memory in the client process and crashing it. Decompression happens in the request path before the response object is returned, so callers cannot inspect headers and opt out, and no special option is required. The fix switches to bounded streaming decompression with a configurable maximum size and raises a new DecompressionError on overflow.
You are affected if you are using a version that falls within the vulnerable range and your application fetches responses from untrusted or attacker-influenced servers.
aiosonic is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 1.0.2.
Upgrade the aiosonic library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant