CVE-2025-8709: SQL Injection in langchain-ai/langchain

Published Oct 26, 2025
·
Updated

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.

Other sources

A SQL injection vulnerability exists in the langchain-ai/langgraph 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.

GitHub

Affected Software

2 affected componentsFixes available
Langchain langgraph-checkpoint-sqlite
pip/langgraph-checkpoint-sqlite<=2.0.10
2.0.11

Event History

Oct 26, 2025
CVE Published
via MITRE·05:38 AM
Data Sourced
via MITRE·05:38 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:30 AM
Data Sourced
via GitHub·06:30 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-8709?

CVE-2025-8709 has been rated as a high-severity vulnerability due to its potential to allow SQL injection attacks.

2

How do I fix CVE-2025-8709?

To fix CVE-2025-8709, upgrade to the latest version of the langgraph-checkpoint-sqlite package that addresses this SQL injection vulnerability.

3

What components are affected by CVE-2025-8709?

CVE-2025-8709 affects the langgraph-checkpoint-sqlite version 2.0.10 of the LangGraph's SQLite store implementation.

4

What type of vulnerability is CVE-2025-8709?

CVE-2025-8709 is classified as a SQL injection vulnerability.

5

Can CVE-2025-8709 lead to data breaches?

Yes, CVE-2025-8709 can potentially lead to data breaches by allowing unauthorized access to the database.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203