PyPI / packaging / 26.3

packaging 26.3

Source
https://github.com/pypa/packaging
Artifact scanned
packaging-26.3-py3-none-any.whl (wheel · 126.9 KB · SHA-256 d7193f7c8e4e…)
Compared with
packaging-26.2-py3-none-any.whl (0 signals introduced since)
Files
22 scanned, 7 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-22 23:00

Signals

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

  1. info warn → info by review dynamic-execution packaging/licenses/__init__.py:144:9

    `compile` called on a non-literal expression (ast pass, confidence 0.70)

        try:
            compile(python_expression, "", "eval")
        except SyntaxError:
            message = f"Invalid license expression: {raw_license_expression!r}"
    likely benign LLM, confidence 0.90 A compile(..., 'eval') call on a derived expression string inside packaging's license-expression validator, used only to detect syntax errors.
    Reasoning

    The compile call is used to syntax-check a generated Python-style license expression string (python_expression) and only catches SyntaxError to report an invalid license expression. It compiles in eval mode without executing the result, and the file belongs to the packaging library's SPDX license-expression parser. This is a legitimate validation pattern, not obfuscated or malicious execution.

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 packaging-26.3-py3-none-any.whl https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl
printf '%s  %s\n' d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c packaging-26.3-py3-none-any.whl | shasum -a 256 -c -
unzip -q packaging-26.3-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg