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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-26 · Modified: 2025-10-28
- Aliases: GHSA-4h97-wpxp-3757, PYSEC-2026-1528
- Record: https://cvemate.com/vulnerability/CVE-2025-8709 · JSON: https://cvemate.com/vulnerability/CVE-2025-8709/json

## Description

```text
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.
```

## Signals

- CVSS: 7.3 high (v3.0, CVE.org) CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
- EPSS: 0.225%, percentile 14.064%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- langchain-ai langchain-ai/langchain: ≥ unspecified, ≤ latest
- PyPI langgraph-checkpoint-sqlite (PyPI): \< 2.0.11

## References

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

---

Data as of 2026-12-05T13:26:50.120Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
