CVE-2025-8709: langchain-ai langchain-ai/langchain SQL Injection
Vulnerability summary
CVE-2025-8709 is a high (CVSS 7.3) SQL Injection vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7% of scored vulnerabilities.
Timeline
- 26-10-2025PublishedVulnerability first disclosed.
- 28-10-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.3HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
- NVDNIST7.3HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
+0.01 pp
From 0.17% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Langchain-ai1 product
- langchain-ai/langchain≥ unspecified, ≤ latest
PyPI1 product
- langgraph-checkpoint-sqlite< 2.0.11
2 vendors · 2 products