Skip to content

    Type a page, a command such as keryn scan, or a rule id.

    langgraph-state-integrity-v2

    View as Markdown

    5 rules · Keryn Software Licence · rules 0.8.0 · all packs

    How to read a rule
    Severity
    How bad the finding is if it is real: error fails a default gate, warning and info do not.
    Confidence
    P0 exploitable as written; P1 dangerous in context; P2 a heuristic or a posture check: confirm by reading the code.
    False-positive risk
    low: an exact API or flag, so hits are almost always real; medium: the pattern is legitimate in many programs, so check each hit; high: it finds a lead to confirm, so expect benign hits.
    Edge
    The relationship the finding sits on. reaches: content or traffic gets to a thing; calls: one thing invokes another; reads: one thing reads from another; writes: one thing writes to another; sends: data leaves for another party; grants: authority is given or left unchecked; depends_on: something relies on a component it does not verify; trusts: one party believes another without evidence. The boundary it crosses, when there is one: user->prompt (untrusted input reaching a prompt); model->code (model output reaching code, a shell, a query or a page); secret->outside (a secret leaving the trusted side); supply-chain (code, models or prompts pulled in from outside).
    Taxonomy chips
    References for readers who work in OWASP LLM 2025, OWASP Agentic, CWE or NIST AI RMF. They say where a rule belongs, not that a framework is satisfied.

    seceng.langgraph.stategraph-without-typed-state

    Section titled “seceng.langgraph.stategraph-without-typed-state”

    info python, typescript, javascript langgraph

    LangGraph StateGraph appears to be created without typed/schema-validated state.

    Confidence P1: dangerous in context. False-positive risk high: it finds a lead to confirm, so expect benign hits.

    Edge inspected: writes one thing writes to another.

    CWE-20 LLM01 LLM06 LLM08 ASI01 ASI02 ASI06 MAP MEASURE MANAGE

    seceng.langgraph-conditional-edge-from-model-output

    Section titled “seceng.langgraph-conditional-edge-from-model-output”

    info python, typescript, javascript langgraph

    LangGraph conditional edge or route decision appears controlled by model output without visible enum/schema validation.

    Confidence P2: a heuristic or a posture check: confirm by reading the code. False-positive risk medium: the pattern is legitimate in many programs, so check each hit.

    Edge inspected: calls one thing invokes another.

    CWE-20 CWE-1426 LLM06 LLM05 ASI02 MEASURE MANAGE

    seceng.langgraph-checkpoint-shared-or-unscoped

    Section titled “seceng.langgraph-checkpoint-shared-or-unscoped”

    info python, typescript, javascript langgraph

    LangGraph checkpoint or memory saver appears shared without visible tenant/user/thread namespace scoping.

    Confidence P2: a heuristic or a posture check: confirm by reading the code. False-positive risk medium: the pattern is legitimate in many programs, so check each hit.

    Edge inspected: grants authority is given or left unchecked.

    CWE-639 CWE-312 LLM08 LLM02 ASI03 ASI06 MAP MANAGE

    seceng.langgraph-state-persists-sensitive-context

    Section titled “seceng.langgraph-state-persists-sensitive-context”

    info python, typescript, javascript langgraph

    LangGraph state/checkpoint appears to persist prompts, messages, tool args, or memory without visible redaction/encryption.

    Confidence P1: dangerous in context. False-positive risk high: it finds a lead to confirm, so expect benign hits.

    Edge inspected: writes one thing writes to another.

    CWE-312 LLM02 LLM07 LLM08 ASI06 ASI02 GOVERN MANAGE

    warning python, typescript, javascript langgraph, github-actions

    LangGraph workflow includes interrupt/human approval concepts but also has a bypass or resume path controlled by input/model state.

    Confidence P1: dangerous in context. False-positive risk high: it finds a lead to confirm, so expect benign hits.

    Edge inspected: grants authority is given or left unchecked.

    CWE-807 LLM06 ASI02 GOVERN MANAGE