PyPI / gunicorn / 27.0.0

gunicorn 27.0.0

Source
https://github.com/benoitc/gunicorn
Artifact scanned
gunicorn-27.0.0-py3-none-any.whl (wheel · 255.7 KB · SHA-256 1380f2f520ab…)
Compared with
gunicorn-26.2.0-py3-none-any.whl (0 signals introduced since)
Files
72 scanned, 4 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 3 info
Scan time
3.9 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 3 of 3 warn and critical signals; 3 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-11-10 11:27

Signals

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

  1. info critical → info by review dynamic-import gunicorn/config.py:555:23

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

                try:
                    mod = __import__(mod_name, fromlist=[obj_name])
                    val = getattr(mod, obj_name)
                except ImportError as e:
    likely benign LLM, confidence 0.90 Gunicorn config loader that imports a module by name from a dotted setting string and fetches an attribute from it.
    Reasoning

    The snippet shows __import__ with a module name taken from a config string, followed by getattr to load an object. This is the standard dotted-path loader gunicorn uses for settings such as worker classes and hooks. Dynamic import is expected there. The operator-controlled input is not a sign of malicious intent, and the code is in an ordinary config loader.

  2. info warn → info by review frame-introspection gunicorn/debug.py:62:5

    `sys.settrace` — call-stack frame introspection (ast pass, confidence 0.70)

        """
        sys.settrace(Spew(trace_names, show_values))
    likely benign LLM, confidence 0.90 Debug helper that installs a sys.settrace tracer to print function calls and values.
    Reasoning

    gunicorn/debug.py is a debugging helper whose documented purpose is tracing execution. sys.settrace installs a trace function that logs calls and values. It is intentional debugging behaviour, not hidden or malicious activity, and it is not reached from a normal startup path in the snippet.

  3. info warn → info by review frame-introspection gunicorn/debug.py:68:5

    `sys.settrace` — call-stack frame introspection (ast pass, confidence 0.70)

        """
        sys.settrace(None)
    likely benign LLM, confidence 0.90 Companion function that disables the sys.settrace tracer installed by the debug helper.
    Reasoning

    This is the matching teardown call, sys.settrace(None), which removes the tracer installed by the companion function. It is paired debugging code with no network, process, or encoding behaviour.

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 gunicorn-27.0.0-py3-none-any.whl https://files.pythonhosted.org/packages/85/2b/367de7fc2fd4cfd1814b0a31da023195eb4037c1fddc4d9e11cc965e1c00/gunicorn-27.0.0-py3-none-any.whl
printf '%s  %s\n' 1380f2f520abc3beb9e72cd2e728bd2d08a19b3ff6ac03ebd8da71d1798a4008 gunicorn-27.0.0-py3-none-any.whl | shasum -a 256 -c -
unzip -q gunicorn-27.0.0-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg