{"schemaVersion":4,"id":"CVE-2025-8709","aliases":["GHSA-4h97-wpxp-3757","PYSEC-2026-1528"],"status":"published","duplicateOf":null,"title":"SQL Injection in langchain-ai/langchain","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.","dates":{"published":"2025-10-26T05:38:55.335Z","modified":"2025-10-28T14:32:39.540Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Pypi","score":7.3,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","exploitability":5.1,"impact":7.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00225,"percentile":0.14064,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.00499999999999997,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.0022},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00179,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00225,"percentile":0.14064}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0022,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00268,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00225,"percentile":0.14064}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","name":"langchain-ai/langchain","label":"langchain-ai/langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ latest","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"unspecified","startInclusive":true,"end":"latest","endInclusive":true}}],"versionsText":"≥ unspecified, ≤ latest","eol":null,"hubHref":"/vendor/langchain-ai/langchain-ailangchain"},{"vendor":"PyPI","product":"langgraph-checkpoint-sqlite","name":"langgraph-checkpoint-sqlite","label":"langgraph-checkpoint-sqlite","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langgraph-checkpoint-sqlite","purlType":"pypi","versions":[{"text":"< 2.0.11","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.0.11","endInclusive":false}}],"versionsText":"< 2.0.11","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.com/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118","label":"huntr.com/bounties/9793f4b3-76f8-44a4-989f-49a2177ee118","hostname":"huntr.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8709","label":"nvd.nist.gov/vuln/detail/CVE-2025-8709","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/langchain-ai/langgraph/pull/5666","label":"github.com/langchain-ai/langgraph/pull/5666","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4","label":"github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/langchain-ai/langgraph","label":"github.com/langchain-ai/langgraph","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D2.0.11","label":"github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D2.0.11","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/langgraph-checkpoint-sqlite","label":"pypi.org/project/langgraph-checkpoint-sqlite","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-4h97-wpxp-3757","label":"github.com/advisories/GHSA-4h97-wpxp-3757","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-10-26T05:38:55.335Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-28T14:32:39.540Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,73],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00225,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-10-28T14:32:39.540Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.0","headline":true},{"type":"cvss","source":"osv_pypi","date":"2025-10-28T14:32:39.540Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.0"},{"type":"cvss","source":"nvd","date":"2025-10-28T14:32:39.540Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.0"},{"type":"adp","source":"cisa-adp","date":"2025-10-28T14:32:35.114Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00225,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T13:01:25.582Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T13:01:26.078Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"stale"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T13:01:07.092Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T13:01:23.911Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T13:01:22.884Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T13:12:15.765Z","stale":false,"partial":false}}