# CVE-2025-8709: A SQL injection vulnerability exists in the langchain-ai/langchain repository, specifically in the LangGraph's SQLite store implementation.

Source: https://junglewise.ai/threats/cve-2025-8709-langgraph-s-sqlite-store-implementation-has-a-sql-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-26  
License: CC BY 4.0 with a link back

CVE-2025-8709 · Severity: high · CVSS 7.3 · Published 2025-10-26

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.

Technologies: [langgraph-checkpoint-sqlite (PyPI)](https://junglewise.ai/threats/technologies/langgraph-checkpoint-sqlite). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-8709 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-8709 being exploited in the wild.

**How severe is CVE-2025-8709?** High severity, with a CVSS score of 7.3, published 26 October 2025.

**Which products and versions are affected?** langgraph-checkpoint-sqlite (PyPI) ECOSYSTEM:introduced=0,fixed=2.0.11.

**Is there a fix for CVE-2025-8709?** Yes. langgraph-checkpoint-sqlite (PyPI): upgrade to 2.0.11 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-8709?** Check whether you run langgraph-checkpoint-sqlite (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- langgraph-checkpoint-sqlite (PyPI): upgrade to 2.0.11 or later

  ```sh
  pip install "langgraph-checkpoint-sqlite>=2.0.11"
  ```


## Affected products

- langgraph-checkpoint-sqlite (PyPI) ECOSYSTEM:introduced=0,fixed=2.0.11

## Identifiers

- CVE-2025-8709
- GHSA-4h97-wpxp-3757
- PYSEC-2026-1528

## Related threats

- [LangGraph checkpoint savers namespace validation bypass in SQLite and Postgres](https://junglewise.ai/threats/cve-2026-115883-langgraph-checkpoint-savers-provide-postgres-and-sqlite-backed)
- [LangGraph incorrect authorization in Postgres and SQLite namespace matching](https://junglewise.ai/threats/cve-2026-71433-langgraph-incorrect-authorization-in-postgres-and-sqlite)
- [PYSEC-2026-1530 - LangGraph's SQLite is vulnerable to SQL injection via metadata filter key in SQLite checkpointer list method](https://junglewise.ai/threats/cve-2025-67644-langgraph-s-sqlite-is-vulnerable-to-sql-injection-via-metadata)
- [LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore](https://junglewise.ai/threats/cve-2025-64104-langgraph-sqlite-checkpoint-filter-key-sql-injection-poc-for)
