CVE-2025-8709: Langgraph checkpoint sqlite SQL Injection Vulnerability

HIGH
Advisory Identifier: GHSA-4h97-wpxp-3757
CVSS 7.3
CWE-89
Published
Advisory Summary

CVE-2025-8709 is a HIGH (CVSS 7.3) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Langgraph checkpoint sqlite libraries in the PyPI ecosystem. The issue involves langgraph's sqlite store implementation has a sql injection vulnerability. Remediation is available by upgrading affected packages to version 2.0.11.

CVE-2025-8709 at a Glance

CVE Identifier CVE-2025-8709
GHSA Identifier GHSA-4h97-wpxp-3757
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Langgraph checkpoint sqlite
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-8709

To remediate this vulnerability, upgrade all affected Langgraph checkpoint sqlite dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

langgraph-checkpoint-sqlite fixed: 2.0.11
pip install langgraph-checkpoint-sqlite>=2.0.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show langgraph-checkpoint-sqlite

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-8709, inspect your installed packages using pip:

pip show langgraph-checkpoint-sqlite

Analyze the terminal output to locate any version of Langgraph checkpoint sqlite in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.11), your application is affected.

Note: The pip show langgraph-checkpoint-sqlite command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Langgraph checkpoint sqlite, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-8709 Affected Langgraph checkpoint sqlite Versions

1 component(s)
Fixed Versions:
2.0.11
Product / Package Ecosystem Affected Versions Fixed Version
langgraph-checkpoint-sqlite
PyPI
< 2.0.11
2.0.11

References

Frequently Asked Questions

What is CVE-2025-8709?
CVE-2025-8709 is a security vulnerability in Langgraph checkpoint sqlite involving LangGraph's SQLite store implementation has a SQL Injection Vulnerability under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Langgraph checkpoint sqlite versions are affected?
Affected versions include releases prior to 2.0.11 across affected packages: langgraph-checkpoint-sqlite.
What version fixes CVE-2025-8709?
Upgrading to 2.0.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is langgraph-checkpoint-sqlite affected?
Yes, langgraph-checkpoint-sqlite is affected in releases prior to 2.0.11. Upgrade your dependency to 2.0.11 or later.
What is the CVSS score of CVE-2025-8709?
CVE-2025-8709 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2025-8709?
CVE-2025-8709 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check PyPI dependencies for CVE-2025-8709?
Run the dependency tree command: 'pip show langgraph-checkpoint-sqlite'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4h97-wpxp-3757",
  "modified" : "2025-10-27T20:23:06Z",
  "published" : "2025-10-26T06:30:20Z",
  "aliases" : [ "CVE-2025-8709" ],
  "summary" : "LangGraph's SQLite store implementation has a SQL Injection Vulnerability",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "langgraph-checkpoint-sqlite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.10"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-8709"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/pull/5666"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/langchain-ai/langgraph"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D2.0.11"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-27T20:23:05Z",
    "nvd_published_at" : "2025-10-26T06:15:48Z"
  }
}