{"answers":{"affected":"3 open source packages ship an affected version, including langgraph-checkpoint-sqlite.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8709 exists.","fix":"Upgrade langgraph-checkpoint-sqlite to 2.0.11 or later.","what":"CVE-2025-8709 is a high-severity SQL injection vulnerability in langchain-ai/langchain, published on 26 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-8709 and fix it if it is affected.\n\nWhat it is: CVE-2025-8709 is a high-severity SQL injection vulnerability in langchain-ai/langchain, published on 26 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8709 exists.\n\nAffected packages and fixed versions:\n- langgraph-checkpoint-sqlite (PyPI): affected all versions; fixed in 2.0.11\n- langgraph-checkpoint-sqlite (PyPI): affected all versions; fixed in 2.0.11\n- langgraph-checkpoint-sqlite (PyPI): affected all versions; fixed in 2.0.11\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-8709/ (Markdown: https://insights.sbomify.com/CVE-2025-8709/index.md)","id":"CVE-2025-8709","markdown":"https://insights.sbomify.com/CVE-2025-8709/index.md","name":"CVE-2025-8709","record":{"aliases":["GHSA-4h97-wpxp-3757","PYSEC-2026-1528"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"LangChain Python library","requires_auth":"low_privilege","summary":"Attackers can inject SQL via filter operators in LangGraph's SQLite store to exfiltrate sensitive data and bypass security filters.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"SQL Injection in langchain-ai/langchain","id":"CVE-2025-8709","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"sql_injection","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"Cross-site request forgery in Connect Secure","id":"CVE-2025-8711"},"packages":[{"ecosystem":"PyPI","fixed":["2.0.11"],"introduced":["0"],"last_affected":[],"package":"langgraph-checkpoint-sqlite","purl":null,"source":"GHSA-4h97-wpxp-3757"},{"ecosystem":"PyPI","fixed":["2.0.11"],"introduced":["0"],"last_affected":[],"package":"langgraph-checkpoint-sqlite","purl":"pkg:pypi/langgraph-checkpoint-sqlite","source":"GHSA-4h97-wpxp-3757"},{"ecosystem":"PyPI","fixed":["2.0.11"],"introduced":["0"],"last_affected":[],"package":"langgraph-checkpoint-sqlite","purl":"pkg:pypi/langgraph-checkpoint-sqlite","source":"PYSEC-2026-1528"}],"prev":{"headline":"Deserialization in White-Jotter","id":"CVE-2025-8708"},"products":["langchain-ai/langchain"],"published":"2025-10-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-28","vendors":["langchain-ai"]},"summary":"Attackers can inject SQL via filter operators in LangGraph's SQLite store to exfiltrate sensitive data and bypass security filters.","url":"https://insights.sbomify.com/CVE-2025-8709/"}