PyPI / gunicorn / 27.0.1

gunicorn 27.0.1

Source
https://github.com/benoitc/gunicorn
Artifact scanned
gunicorn-27.0.1-py3-none-any.whl (wheel · 257.5 KB · SHA-256 378b26b9a38a…)
Compared with
gunicorn-27.0.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
4.4 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-12 22:42

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's config loader uses __import__ on a dotted module name from configuration to resolve a named object.
    Reasoning

    The __import__ call is inside a try block with ImportError handling, a common pattern for loading a user-configured dotted path (e.g., a callable or class named in gunicorn config). Module name comes from configuration, not untrusted input; this is a legitimate plugin/config-loading mechanism, not obfuscation.

  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.92 A debug utility that installs a trace function via sys.settrace to log execution of selected names.
    Reasoning

    gunicorn/debug.py is a developer debugging helper that installs a sys.settrace tracer (Spew) to print function calls and optionally values. Its purpose is explicit and documented, and it is not hidden or executed automatically with malicious effect.

  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.92 Stops the debug tracer by clearing the trace function with sys.settrace(None).
    Reasoning

    This is the counterpart that removes the tracer by calling sys.settrace(None) in the same debug helper module. It is standard cleanup for a tracing utility.

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.1-py3-none-any.whl https://files.pythonhosted.org/packages/f7/46/19ce73424bc4bcac3f0c104950fa776abdfa4515f25104916a62b63b672a/gunicorn-27.0.1-py3-none-any.whl
printf '%s  %s\n' 378b26b9a38adcf4592f28828233c1716acc55e833ea06bf48719782efaa0d10 gunicorn-27.0.1-py3-none-any.whl | shasum -a 256 -c -
unzip -q gunicorn-27.0.1-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg