# CVE-2025-8709: SQL Injection in langchain-ai/langchain

- Severity: High 7.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-26T05:38:55.335Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-4h97-wpxp-3757, PYSEC-2026-1528
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- langchain-ai langchain-ai/langchain: from unspecified up to latest
- langgraph-checkpoint-sqlite (PyPI): before 2.0.11

## Every score

- @huntr_ai: CVSS:3.0 7.3 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.0 7.3 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:3.0 7.3 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`

## References

- <https://huntr.com/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8709> (advisory)
- <https://github.com/langchain-ai/langgraph/pull/5666> (web)
- <https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4> (web)
- <https://github.com/langchain-ai/langgraph> (package)
- <https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D2.0.11> (web)
- <https://pypi.org/project/langgraph-checkpoint-sqlite> (package)
- <https://github.com/advisories/GHSA-4h97-wpxp-3757> (advisory)

## Sources

- CVE List: [CVE-2025-8709](https://www.cve.org/CVERecord?id=CVE-2025-8709), CVE Terms of Use, modified 2025-10-28
- GitHub Advisory Database: [GHSA-4h97-wpxp-3757](https://github.com/advisories/GHSA-4h97-wpxp-3757), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-8709](https://nvd.nist.gov/vuln/detail/CVE-2025-8709), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1528](https://osv.dev/vulnerability/PYSEC-2026-1528), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-8709 · Whole record: https://cve.day/CVE-2025-8709.json · Rebuilt by cve.day 2026-11-25T22:59:06.811Z
