CVE-2025-8709

SQL Injection in langchain-ai/langchain

State
Published
Severity
7.3 High
Published
Oct 26, 2025
Updated
Oct 28, 2025
Reserved
Aug 7, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.07.3 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N@huntr_ai

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

Affected Products

ProductVersions
langchain-ai/langchainlangchain-ai
  • latest and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.