distlib 0.4.3
- Source
- https://github.com/pypa/distlib
- Tag scanned
0.4.3- Compared with
0.4.2(0 signals introduced since)- Files
- 85 scanned, 90 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 16 info
- Scan time
- 4.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 5 of 5 warn and critical signals; 5 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-14 18:34
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= =likely benign Size-limited decompression of an index response in distlib's package locator.Reasoning
The code decompresses an index HTTP response with a size limit (limit+1 and unconsumed_tail check), a common defensive decompression-bomb guard. The payload is a remote index response, not an embedded hidden blob, so this is legitimate use of zlib/gzip.
-
= =likely benign Dynamic __import__ of a package name to locate its resource path.Reasoning
This is the standard idiom in distlib's resource finder for importing a package by name before reading its __path__. The package name originates from the library's own module loading, not attacker-controlled input. Flagged as critical by the pattern alone, but the context is ordinary plugin/resource loading.
-
= =likely benign Dynamic __import__ used by distlib's name resolver for dotted paths.Reasoning
This is the resolver for dotted paths (resolve_name), which imports a module by name and walks attributes. Dynamic import is its purpose; the name comes from callers such as entry point specs, not hidden input in the snippet.
-
⟨U+00A0⟩⟨U+00A0⟩ └── nested_resource.binlikely benign Non-breaking space in indentation of a documentation tree listing.Reasoning
A non-breaking space in a reStructuredText tree diagram or indentation is a common copy-paste artifact in documentation. It is not executable and carries no meaningful payload, though it is a minor hygiene issue.
-
-
-
# Try to bootstrap pip if it isn't found. if ! ; then # shellcheck disable=SC2155 -
-
-
# Install virtualenv as venv isn't available in all Python versions. ( -
( -
# Upgrade pip and setuptools. -
# Upgrade pip and setuptools. # Build wheels to the wheels subdirectory. -
# Build wheels to the wheels subdirectory. for; -
MINIMEXT_EMBED_EXTENSIONS_METADATA= \ -
= = , =likely benign Test invoking a generated script through a shell with Popen.Reasoning
This is a test that runs a generated script via Popen with shell=True. The command is a path from the test's own maker, so it is a test fixture rather than a production attack. shell=True with a non-literal argument is still a risky pattern, but the context is benign.
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.
&&