p PatchFirst

CVE-2025-8709

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.3 · High · EPSS 0.2% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • langchain-ai/langchain

    Versions
    • ≥ unspecified, ≤ latest: Affected (custom)

    No fix published

  • langgraph-checkpoint-sqlite PyPI

    Versions
    • 1.0.0
    • 1.0.1
    • 1.0.2
    • 1.0.3
    • 1.0.4
    • 2.0.0
    • 2.0.1
    • 2.0.10
    • 2.0.2
    • 2.0.3
    • 2.0.4
    • 2.0.5
    • 2.0.6
    • 2.0.7
    • 2.0.8
    • 2.0.9
    Affected ranges
    • ECOSYSTEM: < 2.0.11

    Update to 2.0.11

Original sources

Check your server →