SQL Injection in langgraph-checkpoint-sqlite
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2025-64104 has been found in langgraph-checkpoint-sqlite.
Attackers can target a specific entry point like SqliteStore over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 7.3/10.
What to do: upgrade langgraph-checkpoint-sqlite to 2.0.11 or later.
If unsure, ask your IT team or search "langgraph-checkpoint-sqlite CVE-2025-64104" on the vendor's site.
CVE-2025-64104 (langgraph-checkpoint-sqlite) — CWE-89 / CVSS v3 7.3
Attack vector: local / no user interaction
Attack surface: SqliteStore / filter
Patched: 2.0.11 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
SQL injection (CWE-89) exists in langgraph-checkpoint-sqlite. Attackers reach the vulnerable code path via SqliteStore.
Check the vendor advisory for the affected versions of langgraph-checkpoint-sqlite. Attack surface: SqliteStore / filter.
Severity: High (CVSS 7.3/10). Confidential information can be exposed externally.
Update to 2.0.11.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'langgraph-checkpoint-sqlite' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'langgraph-checkpoint-sqlite' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
langgraph-checkpoint-sqliteを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade langgraph-checkpoint-sqlite to 2.0.11ステージング環境で 2.0.11 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PyPIlanggraph-checkpoint-sqlite |
< 2.0.11→ 2.0.11 |
2.0.11 |
| piplanggraph-checkpoint-sqlite |
< 2.0.11→ 2.0.11 |
2.0.11 |
Original description The description as published by the source.
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 checkpoint…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package pypi.org
- web github.com
- web github.com
- web github.com
- web github.com