CVE-2025-8709: langchain-ai/langchain · Improper Neutralization of Special Elements used in an SQL Command
Affects langchain-ai/langchainSource CVE Database V5
Not known to be exploited · CVSS 7.3 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 26 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHublangchain-ai/langchainpkg:github/langchain-ai/langchainOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Immediately audit all deployments of langchain-ai/langchain, specifically checking for usage of LangGraph's SQLite store version 2.0.10 or earlier. 2. Apply vendor patches or updates as soon as they become available; monitor official repositories and security advisories for fixes. 3. Until patches are available, implement strict input validation and sanitization on all filter operator inputs to prevent injection payloads. 4. Refactor the code to use parameterized queries or prepared statements instead of string concatenation for SQL commands. 5. Restrict access to systems running vulnerable versions to trusted personnel only and monitor for suspicious activity or unauthorized access attempts. 6. Employ database activity monitoring tools to detect anomalous SQL queries indicative of injection attempts. 7. Review and tighten privilege management to minimize the number of users with local access rights. 8. Conduct security awareness training to highlight risks of local privilege misuse. 9. Consider isolating or sandboxing the LangGraph SQLite store to limit potential data exposure. 10. Maintain regular backups and have an incident response plan ready in case of exploitation.
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.