PyPI / httpx / 0.28.1

httpx 0.28.1

Source
https://github.com/encode/httpx
Artifact scanned
httpx-0.28.1-py3-none-any.whl (wheel · 71.8 KB · SHA-256 d909fcccc110…)
Compared with
httpx-0.28.0-py3-none-any.whl (0 signals introduced since)
Files
25 scanned, 4 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
2.6 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-10-23 00:33

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review decoder-decompress-payload httpx/_decoders.py:65:29

    file imports decoder module(s) codecs, zlib and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

            self.first_attempt = True
            self.decompressor = zlib.decompressobj()
    
        def decode(self, data: bytes) -> bytes:
    likely benign LLM, confidence 0.97 httpx's gzip/deflate response decoder initializes a zlib decompressor to handle compressed HTTP response bodies.
    Reasoning

    This is httpx's standard HTTP content-decoding code. zlib.decompressobj() is used to decompress gzip/deflate response bodies, which is the expected behavior of an HTTP client. The snippet shows a decoder class initializing a zlib decompressor for response data, not an embedded payload being unpacked and executed. The finding's message about a 'embedded payload' is a generic pattern match on decompress calls and does not fit this legitimate library code.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o httpx-0.28.1-py3-none-any.whl https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl
printf '%s  %s\n' d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad httpx-0.28.1-py3-none-any.whl | shasum -a 256 -c -
unzip -q httpx-0.28.1-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg