Skip to content
OpenAdvisories
High · 7.3 CVE-2025-8709 EUVD-2025-35939GHSA-4h97-wpxp-3757PYSEC-2026-1528

SQL Injection in langchain-ai/langchain

Published Oct 26, 2025 · Updated Oct 28, 2025 · Assigned by @huntr_ai

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.

Affected products

VendorProductAffectedFixed
langchain-ai langchain-ai/langchain unspecified – ≤ latest —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI langgraph-checkpoint-sqlite < 2.0.11 2.0.11 GHSA-4h97-wpxp-3757

References