PyPI / langgraph / 1.2.16

langgraph 1.2.16

Source
https://github.com/langchain-ai/langgraph
Tag scanned
1.2.16
Directory
libs/langgraph (only this part of the repository was scanned)
Compared with
1.2.15 (0 signals introduced since)
Files
166 scanned, 9 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 2 info
Scan time
3.3 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.1.0
Scanned (UTC)
2026-10-22 08:57

Signals

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

  1. file mixes tab and space indentation (12 tab-indented and 7948 space-indented lines) (raw pass, confidence 0.40)

    from typing import (
        Annotated,
        Any,
        Literal,
  2. info warn → info by review dynamic-execution libs/langgraph/tests/test_subgraph_detection.py:182:5

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

        namespace: dict[str, Any] = {"SOURCELESS": _leaf("sourceless")}
        exec(
            compile(
                "def node(state):\n    return SOURCELESS.invoke(state)", "<test>", "exec"
    likely benign LLM, confidence 0.90 Test code uses exec(compile(...)) on a hardcoded snippet to build a namespace for a subgraph detection test.
    Reasoning

    The exec call runs compile() on a literal source string defined inline in a test file, with a namespace dict containing a test leaf object. The code string is a fixed test fixture, not attacker-controlled input or an encoded payload. The AST pass flags exec on a non-literal expression because compile() wraps the string, but the context is a legitimate test harness for subgraph detection.

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.1.0
git clone https://github.com/langchain-ai/langgraph langgraph && cd langgraph
git checkout 1.2.16
disclude scan --severity info --diff 1.2.15 libs/langgraph