CVE-2025-8709 json
SQL Injection in langchain-ai/langchain
published last yr. modified 21d ago also GHSA-4h97-wpxp-3757 , PYSEC-2026-1528 , EUVD-2025-35939
- cvss
- 7.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 12%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi langgraph-checkpoint-sqlite 2.0.11
Is CVE-2025-8709 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-8709 updated cvss 7.3
langchain: SQL Injection in langchain-ai/langchain
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9, ansible-automation-platform-26/mcp-tools-rhel9, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/ee-minimal-rhel8, +31 more Red Hat Enterprise Linux AI (RHEL AI) rhelai1/bootc-amd-rhel9, rhelai1/bootc-intel-rhel9, rhelai1/bootc-nvidia-rhel9, rhelai1/bootc-azure-amd-rhel9, rhelai1/instructlab-amd-rhel9, rhelai1/bootc-aws-nvidia-rhel9, +4 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- huntr.com https://huntr.com/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
| OSV | 3.0 | 7.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
| GitHub | 3.0 | 7.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langgraph-checkpoint-sqlite | <2.0.11 |
2.0.11 |
Affected products
- langchain-ai langchain-ai/langchain
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/langchain-ai/langgraph/pull/5666
web
-
github.com
/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4
web
-
huntr.com
/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118
exploit, web
-
nvd.nist.gov
/vuln/detail/CVE-2025-8709
advisory
-
github.com
/langchain-ai/langgraph
package
-
github.com
/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D2.0.11
web
-
pypi.org
/project/langgraph-checkpoint-sqlite
package
-
github.com
/advisories/GHSA-4h97-wpxp-3757
advisory
Sources
- CVE List CVE-2025-8709
- GitHub Advisory GHSA-4h97-wpxp-3757
- NVD CVE-2025-8709
- OSV PYSEC-2026-1528
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.