CVE-2025-8709: Langgraph checkpoint sqlite SQL Injection Vulnerability
HIGHCVE-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
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).
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.
pip install langgraph-checkpoint-sqlite>=2.0.11
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
CVE-2025-8709 Affected Langgraph checkpoint sqlite Versions
1 component(s)| 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?
Which Langgraph checkpoint sqlite versions are affected?
What version fixes CVE-2025-8709?
Is langgraph-checkpoint-sqlite affected?
What is the CVSS score of CVE-2025-8709?
What CWE is associated with CVE-2025-8709?
How can I check PyPI dependencies for CVE-2025-8709?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}