pkginfo 1.13.2
- Artifact scanned
pkginfo-1.13.2-py3-none-any.whl- Compared with
pkginfo-1.13.1-py3-none-any.whl(0 signals introduced since)- Files
- 34 scanned, 4 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 2 info
- Scan time
- 3.0 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 2 of 2 warn and critical signals; 2 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-25 15:42
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= Nonelikely benign Dynamic __import__ of a caller-supplied package name guarded by an ImportError handler in pkginfo's installed-package lookup.Reasoning
The __import__ call on a variable is wrapped in try/except ImportError and falls back to setting package to None, which is the standard pattern for probing whether an optional module is importable. The package name is a function parameter in a metadata-reading library, so it is not decoded or attacker-controlled data from an encoded blob. Dynamic import is flagged at critical severity by the AST pass, but the context is consistent with a legitimate optional-dependency check.
-
passlikely benign Dynamic __import__ of a path-or-module argument with ImportError suppressed in pkginfo's utility loader.Reasoning
The __import__ call uses a non-literal path_or_module argument inside a try/except ImportError that silently passes. This is a common module-loading helper in a metadata library that accepts either a path or a module name. There is no decoding, process spawning, or network activity in the snippet, and the import target comes from the caller's arguments rather than an embedded payload. Dynamic import alone is a weak signal here, so the verdict is likely benign.
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.
|