PyPI / pyasn1 / 0.6.4

pyasn1 0.6.4

Source
https://github.com/pyasn1/pyasn1
Tag scanned
v0.6.4
Compared with
v0.6.3 (0 signals introduced since)
Files
147 scanned, 4 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 9 info
Scan time
5.2 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 9 of 9 warn and critical signals; 9 demoted to info.
Disclude version
4.0.0
Scanned (UTC)
2026-10-14 18:18

Signals

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

  1. info warn → info by review whitespace-anomaly docs/source/pyasn1/type/univ/setof.rst:11:13

    invisible whitespace U+00A0 in indentation (raw pass, confidence 0.80)

       :members: isValue, isSameTypeWith, isSuperTypeOf, tagSet, effectiveTagSet, tagMap, componentType, subtypeSpec,
                ⟨U+00A0⟩getComponentByPosition, setComponentByPosition, clear, reset, isInconsistent
    
       .. note::
    likely benign LLM, confidence 0.90 Documentation file containing a non-breaking space in an indented directive option line.
    Reasoning

    A non-breaking space in RST indentation is a common artifact of copy-pasting from rendered docs or word processors; it is cosmetic and carries no executable effect.

  2. info warn → info by review dynamic-attribute pyasn1/codec/ber/decoder.py:2235:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ backward-compatibility shim for deprecated names in the BER decoder.
    Reasoning

    This is the standard module-level __getattr__ deprecation shim: it warns and returns a same-module global by name for renamed symbols, then raises AttributeError. The name lookup is bounded to the module's own namespace and is a common, legitimate pattern.

  3. info warn → info by review dynamic-attribute pyasn1/codec/ber/encoder.py:953:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ backward-compatibility shim for deprecated names in the BER encoder.
    Reasoning

    Same benign module-level __getattr__ deprecation shim; the lookup only resolves names within the module's globals and falls through to AttributeError otherwise.

  4. info warn → info by review dynamic-attribute pyasn1/codec/cer/decoder.py:148:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ deprecation shim in the CER decoder.
    Reasoning

    Identical deprecation shim pattern using globals() for renamed attributes; no external input or code execution is involved.

  5. info warn → info by review dynamic-attribute pyasn1/codec/cer/encoder.py:330:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ deprecation shim in the CER encoder.
    Reasoning

    Standard deprecation alias lookup via globals() within the module, with a warning and AttributeError fallback; benign.

  6. info warn → info by review dynamic-attribute pyasn1/codec/der/decoder.py:119:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ deprecation shim in the DER decoder.
    Reasoning

    Same deprecation alias pattern restricted to the module's own names; no dynamic execution or attacker-controlled input.

  7. info warn → info by review dynamic-attribute pyasn1/codec/der/encoder.py:125:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ deprecation shim in the DER encoder.
    Reasoning

    Benign deprecation shim returning a renamed module global; the lookup key is a fixed mapping, not untrusted data.

  8. info warn → info by review dynamic-attribute pyasn1/codec/native/decoder.py:243:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ deprecation shim in the native decoder.
    Reasoning

    Standard deprecation shim for renamed module attributes; globals() access is bounded and harmless here.

  9. info warn → info by review dynamic-attribute pyasn1/codec/native/encoder.py:284:16

    reach-by-name through `globals` (ast pass, confidence 0.60)

            warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning, stacklevel=2)
            return globals()[newAttr]
        raise AttributeError(attr)
    likely benign LLM, confidence 0.95 Module __getattr__ deprecation shim in the native encoder.
    Reasoning

    Same deprecation alias mechanism with a warning and AttributeError fallback; this is ordinary library compatibility code.

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.

cargo install disclude --version 4.0.0
git clone https://github.com/pyasn1/pyasn1 pyasn1 && cd pyasn1
git checkout v0.6.4
disclude scan --severity info --diff v0.6.3 .