PyPI / langchain / 1.4.6

langchain 1.4.6

Source
https://github.com/langchain-ai/langchain
Tag scanned
langchain==1.4.6
Directory
libs/langchain_v1 (only this part of the repository was scanned)
Compared with
langchain==1.4.5 (0 signals introduced since)
Files
166 scanned, 24 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
3.2 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 04:42

Signals

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

  1. `eval` called on a non-literal expression (ast pass, confidence 0.70)

        # This tool executes normally (not emulated)
        return f"Result: {eval(expression)}"  # noqa: S307
    likely benign LLM, confidence 0.90 A test fixture tool function that evaluates an expression with eval, marked noqa S307 by the developer.
    Reasoning

    The eval call sits inside a test fixture tool function (a stub tool used to exercise the tool emulator middleware). The noqa S307 comment shows the developer knowingly wrote eval, and the surrounding comment says the tool runs normally in a test. There is no sign of obfuscation or attacker-controlled payload delivery; it is a deliberate, low-risk test helper, though eval on a non-literal is poor practice if the input is untrusted.

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/langchain langchain && cd langchain
git checkout langchain==1.4.6
disclude scan --severity info --diff langchain==1.4.5 libs/langchain_v1