SQL Injection in Langchain-Ai Langchain-Ai/langchain
CVE-2025-8709
A SQL injection vulnerability exists in the langchain-ai/langchain repository, specifically in the LangGraph's SQLite store implementation. The affected version is langgraph-checkpoint-sqlite 2.0.10. The vulnerability arises from improper handling of filter operators ($eq, $ne, $gt, $lt, $gte, $lte) where direct string concatenation is used without proper parameterization. This allows attackers to inject arbitrary SQL, leading to unauthorized access to all documents, data exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N.
EPSS exploit prediction
EPSS: 0.002 (6.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 7th percentile — 6.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: +0.000
Affected products
- Langchain-Ai Langchain-Ai/langchain — versions unspecified
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2025-8709?
- CVE-2025-8709 is a high-severity vulnerability in Langchain-Ai Langchain-Ai/langchain, classified under SQL Injection. CVSS score: 7.3/10. Published 2025-10-26.
- How severe is CVE-2025-8709?
- High severity. CVSS v3 base score is 7.3 out of 10.