PyPI / starlette / 1.9.0

starlette 1.9.0

Source
https://github.com/Kludex/starlette
Tag scanned
1.9.0
Compared with
1.8.0 (0 signals introduced since)
Files
128 scanned, 13 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 2 info
Scan time
3.2 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 2 of 2 warn and critical signals; 2 demoted to info.
Disclude version
4.1.0
Scanned (UTC)
2026-10-21 22:13

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 benchmarks/gzip_benchmark.py:93:16

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

            assert isinstance(compressed, bytes)
            assert gzip.decompress(compressed) == self.payload
    
            assert len(self.tiny_messages) == 2
    likely benign LLM, confidence 0.95 A benchmark test verifies gzip round-trip decompression of its own test data.
    Reasoning

    The snippet is a benchmark asserting that gzip.decompress of a compressed test fixture equals the original payload. This is a round-trip correctness check on a locally generated value, not a hidden runtime payload. The signal fires on the generic decompress call, and nothing in the snippet suggests dropper behavior.

  2. info warn → info by review decoder-decompress-payload tests/middleware/test_gzip.py:162:20

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

        assert len(events) == 3
        decompressor = zlib.decompressobj(16 + zlib.MAX_WBITS)
        assert decompressor.decompress(events[1]["body"]) == chunk
        assert decompressor.decompress(events[2]["body"]) == b"tail"
    likely benign LLM, confidence 0.95 A middleware test decompresses gzip-streamed response chunks to verify their contents.
    Reasoning

    The snippet is a unit test that uses zlib.decompressobj with a gzip window size to check streamed response chunks from a middleware. The decompressed data is compared against expected chunks, which is ordinary test validation. The file name and usage match a web framework's gzip middleware tests.

Reproduce This Scan

Run disclude locally to verify. 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.1.0
git clone https://github.com/Kludex/starlette starlette && cd starlette
git checkout 1.9.0
disclude scan --severity info --diff 1.8.0 .