{"id":"CVE-2025-8709","aliases":["CVE-2025-8709","GHSA-4h97-wpxp-3757","PYSEC-2026-1528"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection in langchain-ai/langchain","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de inyección SQL existe en el repositorio langchain-ai/langchain, específicamente en la implementación del almacén SQLite de LangGraph. La versión afectada es langgraph-checkpoint-sqlite 2.0.10. La vulnerabilidad surge del manejo inadecuado de los operadores de filtro ($eq, $ne, $gt, $lt, $gte, $lte) donde se utiliza la concatenación directa de cadenas sin una parametrización adecuada. Esto permite a los atacantes inyectar SQL arbitrario, lo que lleva a un acceso no autorizado a todos los documentos, exfiltración de datos de campos sensibles como contraseñas y claves API, y una elusión completa de los filtros de seguridad a nivel de aplicación.","source":"nvd"}],"published":"2025-10-26T05:38:55.335Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.3,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.3,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"langchain-ai","product":"langchain-ai/langchain","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.11"}],"ecosystem":"PyPI","package":"langgraph-checkpoint-sqlite","purl":"pkg:pypi/langgraph-checkpoint-sqlite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.11"}],"ecosystem":"PyPI","package":"langgraph-checkpoint-sqlite","purl":"pkg:pypi/langgraph-checkpoint-sqlite","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8709","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langgraph/pull/5666","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langgraph","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D2.0.11","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langgraph-checkpoint-sqlite","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-4h97-wpxp-3757","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-10-28T14:32:35.114Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-8709","url":"https://www.cve.org/CVERecord?id=CVE-2025-8709","licence":"CVE Terms of Use","modified":"2025-10-28T14:32:39.540Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4h97-wpxp-3757","url":"https://github.com/advisories/GHSA-4h97-wpxp-3757","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:33.814Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-8709","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8709","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1528","url":"https://osv.dev/vulnerability/PYSEC-2026-1528","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:36.814Z"}],"updatedAt":"2026-11-25T22:59:06.811Z","epss":{"score":0.00225,"percentile":0.14073,"date":"2026-12-02T12:00:21.000Z"}}