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

LangChain MongoDB聊天历史类型校验漏洞

摘要与解读

MongoDBChatMessageHistory未校验会话标识类型,可致跨用户读改删聊天记录

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "langchainjs", "vendor": "langchain-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}}
  • {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}}
  • 来源报告显示,CVE-2026-106119 涉及 langchain-ai 的 langchainjs 框架,问题组件为 MongoDBChatMessageHistory:在 1.3.1 之前,该组件未对来自不可信结构化输入的内容强制执行文档所声明的字符串类型。影响对象是使用该组件持久化聊天消息、且消息内容可被外部输入影响的 LLM 应用;信任边界位于应用接收的不可信结构化输入与 MongoDB 消息历史写入之间。后果取决于该输入是否进入消息历史并被后续流程使用。

    原文依据 · 2
    ver-controlled string identifiers are not affected. This issue is fixed in version 1.3.1. cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}} affected_versions: {"authority": "security-advisories@github.com", "default_status"
    查看原文 · v1
    in-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "mongodb", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}} references: {"
    查看原文 · v1

关联资产

  • langchain-ai
  • @langchain
  • 原文明示的关联资产为 langchain-ai 的 langchainjs 框架、@langchain 的 mongodb 组件(MongoDBChatMessageHistory),以及其依赖的 MongoDB 消息历史存储。适用前提是应用使用 1.3.1 之前的 langchainjs 版本,并通过该组件写入来自不可信结构化输入的聊天消息;来源另列 < 1.5.14 的版本声明,需按原文核对对应产品。未提供本地资产清单,未进行本地匹配。

    原文依据 · 2
    ver-controlled string identifiers are not affected. This issue is fixed in version 1.3.1. cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}} affected_versions: {"authority": "security-advisories@github.com", "default_status"
    查看原文 · v1
    in-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "mongodb", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}} references: {"
    查看原文 · v1

风险评估

  • 已报道的风险机制是类型约束缺失:MongoDBChatMessageHistory 未按文档要求强制字符串类型,使不可信结构化输入以非预期形态进入消息历史。触发条件是应用在 1.3.1 之前版本中使用该组件并接受外部可控的结构化消息内容。来源给出的 CVSS 4.0 评分为 6.0,向量含 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N,表明网络可达、需较高攻击前提与低权限,机密性影响高、完整性影响低。防护优先级应放在升级与输入类型校验上。

    原文依据 · 1
    ver-controlled string identifiers are not affected. This issue is fixed in version 1.3.1. cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}} affected_versions: {"authority": "security-advisories@github.com", "default_status"
    查看原文 · v1

相关研究

  • 材料提供的是 NVD 漏洞条目而非研究论文:其贡献在于记录受影响产品 langchainjs(vendor langchain-ai)与 @langchain 的 mongodb 组件、版本声明及修复版本 1.3.1,并保留 CNA 版本语义与状态变更。相关研究机制即消息历史组件对不可信结构化输入的字符串类型强制问题;来源未提供漏洞发现方法、根因分析或补丁细节。

    原文依据 · 2
    ver-controlled string identifiers are not affected. This issue is fixed in version 1.3.1. cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}} affected_versions: {"authority": "security-advisories@github.com", "default_status"
    查看原文 · v1
    in-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "mongodb", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}} references: {"
    查看原文 · v1

验证资料

  • 来源给出的可核查事实为版本边界:langchainjs 在 1.3.1 之前受影响、1.3.1 修复;@langchain 的 mongodb 组件版本声明为 < 1.3.1 受影响,另有 < 1.5.14 的版本声明需按原文保留核对。防御性核查可包括:清点依赖树中 langchainjs 与 @langchain/mongodb 的实际版本,确认是否低于修复版本;观察写入 MongoDB 消息历史的记录中 message 字段类型是否出现非字符串形态,以及相关类型校验告警日志。来源未给出实验数据或复现结果。

    原文依据 · 2
    ver-controlled string identifiers are not affected. This issue is fixed in version 1.3.1. cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}} affected_versions: {"authority": "security-advisories@github.com", "default_status"
    查看原文 · v1
    in-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "mongodb", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}} references: {"
    查看原文 · v1

处置建议

  • 建议按序处理:第一步将 langchainjs 升级至来源明确的修复版本 1.3.1,并同步核对 @langchain mongodb 组件版本声明(< 1.3.1 与 < 1.5.14)以确定实际受影响范围;第二步在升级前对写入 MongoDBChatMessageHistory 的不可信结构化输入增加字符串类型校验与拒绝策略;第三步在日志中监测消息历史写入的类型异常并做回归验证,确认升级后行为符合文档声明的字符串类型要求。上述为基于来源版本事实的条件性建议。

    原文依据 · 2
    ver-controlled string identifiers are not affected. This issue is fixed in version 1.3.1. cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}} affected_versions: {"authority": "security-advisories@github.com", "default_status"
    查看原文 · v1
    in-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}} affected_products: {"authority": "security-advisories@github.com", "product": {"product": "mongodb", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}} references: {"
    查看原文 · v1
模型与引文记录
模型
deepseek-flash
生成时间
记录编号
REQ-8bb599ba276548c888b72c602e028a48
分析原文
查看原文 · v1

情报标识:CVE-2026-106119

来源字段与 CVSS 指标

受影响产品

langchain-ai

查看来源依据

结构化证据路径 $.vulnerabilities[8].cve.affected[0].affectedData[0]

{"product": "langchainjs", "vendor": "langchain-ai", "versions": [{"status": "affected", "version": "< 1.5.14"}]}
字段所属产品与版本上下文
[
  {
    "format": "nvd_2",
    "json_path": "$.vulnerabilities[8].cve.affected[0].source",
    "quote": "\"security-advisories@github.com\"",
    "record_path": "$.affected[0].source"
  }
]

@langchain

查看来源依据

结构化证据路径 $.vulnerabilities[8].cve.affected[0].affectedData[1]

{"product": "mongodb", "vendor": "@langchain", "versions": [{"status": "affected", "version": "< 1.3.1"}]}
字段所属产品与版本上下文
[
  {
    "format": "nvd_2",
    "json_path": "$.vulnerabilities[8].cve.affected[0].source",
    "quote": "\"security-advisories@github.com\"",
    "record_path": "$.affected[0].source"
  }
]

受影响版本

{"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "langchainjs", "vendor": "langchain-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}}

查看来源依据

结构化证据路径 $.vulnerabilities[8].cve.affected[0].affectedData[0].versions[0]

{"status": "affected", "version": "< 1.5.14"}
字段所属产品与版本上下文
[
  {
    "format": "nvd_2",
    "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[0]",
    "quote": "{\"product\": \"langchainjs\", \"vendor\": \"langchain-ai\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.5.14\"}]}",
    "record_path": "$.affected[0].affectedData[0]"
  },
  {
    "format": "nvd_2",
    "json_path": "$.vulnerabilities[8].cve.affected[0].source",
    "quote": "\"security-advisories@github.com\"",
    "record_path": "$.affected[0].source"
  }
]

{"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}}

查看来源依据

结构化证据路径 $.vulnerabilities[8].cve.affected[0].affectedData[1].versions[0]

{"status": "affected", "version": "< 1.3.1"}
字段所属产品与版本上下文
[
  {
    "format": "nvd_2",
    "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[1]",
    "quote": "{\"product\": \"mongodb\", \"vendor\": \"@langchain\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.3.1\"}]}",
    "record_path": "$.affected[0].affectedData[1]"
  },
  {
    "format": "nvd_2",
    "json_path": "$.vulnerabilities[8].cve.affected[0].source",
    "quote": "\"security-advisories@github.com\"",
    "record_path": "$.affected[0].source"
  }
]

来源风险评分

6.0 / 10 · CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 4.0

查看来源依据

结构化证据路径 $.vulnerabilities[8].cve.metrics.cvssMetricV40[0]

{"cvssData": {"Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "Safety": "NOT_DEFINED", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "attackVector": "NETWORK", "availabilityRequirement": "NOT_DEFINED", "baseScore": 6.0, "baseSeverity": "MEDIUM", "confidentialityRequirement": "NOT_DEFINED", "exploitMaturity": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "privilegesRequired": "LOW", "providerUrgency": "NOT_DEFINED", "subAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "userInteraction": "NONE", "valueDensity": "NOT_DEFINED", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0", "vulnAvailabilityImpact": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "LOW", "vulnerabilityResponseEffort": "NOT_DEFINED"}, "source": "security-advisories@github.com", "type": "Secondary"}

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

结构化格式
nvd_2
原始标题与分类记录

CVE-2026-106119: LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured se

研究方向
待人工确认
影响维度
待人工确认
风险类型
待人工确认
相关技术
LLM

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

分类规则与原始字段
LLM · llm
CVE-2026-106119: LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented str
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 58,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 55
      },
      {
        "end_offset": 255,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 252
      },
      {
        "end_offset": 26,
        "location": "title_and_content",
        "quote": "LangChain",
        "rule": "ai_component",
        "start_offset": 17
      },
      {
        "end_offset": 223,
        "location": "title_and_content",
        "quote": "LangChain",
        "rule": "ai_component",
        "start_offset": 214
      },
      {
        "end_offset": 1261,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1252
      },
      {
        "end_offset": 1417,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1408
      },
      {
        "end_offset": 1697,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1688
      },
      {
        "end_offset": 1847,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1838
      },
      {
        "end_offset": 2068,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2059
      },
      {
        "end_offset": 2201,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2192
      },
      {
        "end_offset": 2297,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2288
      },
      {
        "end_offset": 2336,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2327
      },
      {
        "end_offset": 2420,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2411
      }
    ],
    "matches": [
      {
        "end_offset": 58,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 55
      },
      {
        "end_offset": 255,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 252
      },
      {
        "end_offset": 26,
        "location": "title_and_content",
        "quote": "LangChain",
        "rule": "ai_component",
        "start_offset": 17
      },
      {
        "end_offset": 223,
        "location": "title_and_content",
        "quote": "LangChain",
        "rule": "ai_component",
        "start_offset": 214
      },
      {
        "end_offset": 1261,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1252
      },
      {
        "end_offset": 1417,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1408
      },
      {
        "end_offset": 1697,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1688
      },
      {
        "end_offset": 1847,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 1838
      },
      {
        "end_offset": 2068,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2059
      },
      {
        "end_offset": 2201,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2192
      },
      {
        "end_offset": 2297,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2288
      },
      {
        "end_offset": 2336,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2327
      },
      {
        "end_offset": 2420,
        "location": "title_and_content",
        "quote": "langchain",
        "rule": "ai_component",
        "start_offset": 2411
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [
    "CVE-2026-106119"
  ],
  "facts": [
    {
      "evidence": {
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.metrics.cvssMetricV40[0]",
        "quote": "{\"cvssData\": {\"Automatable\": \"NOT_DEFINED\", \"Recovery\": \"NOT_DEFINED\", \"Safety\": \"NOT_DEFINED\", \"attackComplexity\": \"LOW\", \"attackRequirements\": \"PRESENT\", \"attackVector\": \"NETWORK\", \"availabilityRequirement\": \"NOT_DEFINED\", \"baseScore\": 6.0, \"baseSeverity\": \"MEDIUM\", \"confidentialityRequirement\": \"NOT_DEFINED\", \"exploitMaturity\": \"NOT_DEFINED\", \"integrityRequirement\": \"NOT_DEFINED\", \"modifiedAttackComplexity\": \"NOT_DEFINED\", \"modifiedAttackRequirements\": \"NOT_DEFINED\", \"modifiedAttackVector\": \"NOT_DEFINED\", \"modifiedPrivilegesRequired\": \"NOT_DEFINED\", \"modifiedSubAvailabilityImpact\": \"NOT_DEFINED\", \"modifiedSubConfidentialityImpact\": \"NOT_DEFINED\", \"modifiedSubIntegrityImpact\": \"NOT_DEFINED\", \"modifiedUserInteraction\": \"NOT_DEFINED\", \"modifiedVulnAvailabilityImpact\": \"NOT_DEFINED\", \"modifiedVulnConfidentialityImpact\": \"NOT_DEFINED\", \"modifiedVulnIntegrityImpact\": \"NOT_DEFINED\", \"privilegesRequired\": \"LOW\", \"providerUrgency\": \"NOT_DEFINED\", \"subAvailabilityImpact\": \"NONE\", \"subConfidentialityImpact\": \"NONE\", \"subIntegrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"valueDensity\": \"NOT_DEFINED\", \"vectorString\": \"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X\", \"version\": \"4.0\", \"vulnAvailabilityImpact\": \"NONE\", \"vulnConfidentialityImpact\": \"HIGH\", \"vulnIntegrityImpact\": \"LOW\", \"vulnerabilityResponseEffort\": \"NOT_DEFINED\"}, \"source\": \"security-advisories@github.com\", \"type\": \"Secondary\"}",
        "record_path": "$.metrics.cvssMetricV40[0]"
      },
      "field": "cvss",
      "value": {
        "authority": "security-advisories@github.com",
        "score": 6.0,
        "type": "Secondary",
        "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
        "version": "4.0"
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "nvd_2",
            "json_path": "$.vulnerabilities[8].cve.affected[0].source",
            "quote": "\"security-advisories@github.com\"",
            "record_path": "$.affected[0].source"
          }
        ],
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[0]",
        "quote": "{\"product\": \"langchainjs\", \"vendor\": \"langchain-ai\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.5.14\"}]}",
        "record_path": "$.affected[0].affectedData[0]"
      },
      "field": "affected_products",
      "value": {
        "authority": "security-advisories@github.com",
        "product": {
          "product": "langchainjs",
          "vendor": "langchain-ai"
        }
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "nvd_2",
            "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[0]",
            "quote": "{\"product\": \"langchainjs\", \"vendor\": \"langchain-ai\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.5.14\"}]}",
            "record_path": "$.affected[0].affectedData[0]"
          },
          {
            "format": "nvd_2",
            "json_path": "$.vulnerabilities[8].cve.affected[0].source",
            "quote": "\"security-advisories@github.com\"",
            "record_path": "$.affected[0].source"
          }
        ],
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[0].versions[0]",
        "quote": "{\"status\": \"affected\", \"version\": \"\u003c 1.5.14\"}",
        "record_path": "$.affected[0].affectedData[0].versions[0]"
      },
      "field": "affected_versions",
      "value": {
        "authority": "security-advisories@github.com",
        "default_status": null,
        "product": {
          "product": "langchainjs",
          "vendor": "langchain-ai"
        },
        "semantics": "NVD CNA version statement; preserve status changes and versionType",
        "version_statement": {
          "status": "affected",
          "version": "\u003c 1.5.14"
        }
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "nvd_2",
            "json_path": "$.vulnerabilities[8].cve.affected[0].source",
            "quote": "\"security-advisories@github.com\"",
            "record_path": "$.affected[0].source"
          }
        ],
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[1]",
        "quote": "{\"product\": \"mongodb\", \"vendor\": \"@langchain\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.3.1\"}]}",
        "record_path": "$.affected[0].affectedData[1]"
      },
      "field": "affected_products",
      "value": {
        "authority": "security-advisories@github.com",
        "product": {
          "product": "mongodb",
          "vendor": "@langchain"
        }
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "nvd_2",
            "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[1]",
            "quote": "{\"product\": \"mongodb\", \"vendor\": \"@langchain\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.3.1\"}]}",
            "record_path": "$.affected[0].affectedData[1]"
          },
          {
            "format": "nvd_2",
            "json_path": "$.vulnerabilities[8].cve.affected[0].source",
            "quote": "\"security-advisories@github.com\"",
            "record_path": "$.affected[0].source"
          }
        ],
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.affected[0].affectedData[1].versions[0]",
        "quote": "{\"status\": \"affected\", \"version\": \"\u003c 1.3.1\"}",
        "record_path": "$.affected[0].affectedData[1].versions[0]"
      },
      "field": "affected_versions",
      "value": {
        "authority": "security-advisories@github.com",
        "default_status": null,
        "product": {
          "product": "mongodb",
          "vendor": "@langchain"
        },
        "semantics": "NVD CNA version statement; preserve status changes and versionType",
        "version_statement": {
          "status": "affected",
          "version": "\u003c 1.3.1"
        }
      }
    },
    {
      "evidence": {
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.references[0]",
        "quote": "{\"source\": \"security-advisories@github.com\", \"url\": \"https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af\"}",
        "record_path": "$.references[0]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af"
      }
    },
    {
      "evidence": {
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.references[1]",
        "quote": "{\"source\": \"security-advisories@github.com\", \"url\": \"https://github.com/langchain-ai/langchainjs/pull/11672\"}",
        "record_path": "$.references[1]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/langchain-ai/langchainjs/pull/11672"
      }
    },
    {
      "evidence": {
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.references[2]",
        "quote": "{\"source\": \"security-advisories@github.com\", \"url\": \"https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1\"}",
        "record_path": "$.references[2]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1"
      }
    },
    {
      "evidence": {
        "format": "nvd_2",
        "json_path": "$.vulnerabilities[8].cve.references[3]",
        "quote": "{\"source\": \"security-advisories@github.com\", \"url\": \"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95\"}",
        "record_path": "$.references[3]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95"
      }
    }
  ],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "fixed_versions",
    "mitigations",
    "papers",
    "poc"
  ]
}
原始采集文本
CVE-2026-106119
LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured session identifier at runtime, allowing the identifier to be interpreted as a MongoDB query condition rather than as a literal value when multiple users' histories are stored in a shared MongoDB collection. An attacker able to invoke chat-history operations can read, modify, or delete another user's stored conversation. Applications using authenticated, server-controlled string identifiers are not affected. This issue is fixed in version 1.3.1.
cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"}
affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}}
affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "langchainjs", "vendor": "langchain-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}}
affected_products: {"authority": "security-advisories@github.com", "product": {"product": "mongodb", "vendor": "@langchain"}}
affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af"}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/pull/11672"}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1"}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95"}
采集信息与校验
完整来源元数据
{
  "format": "nvd_2",
  "raw_record": {
    "affected": [
      {
        "affectedData": [
          {
            "product": "langchainjs",
            "vendor": "langchain-ai",
            "versions": [
              "\u5c55\u793a\u9884\u7b97\u5df2\u7528\u5c3d\uff1b\u539f\u59cb\u4fdd\u5b58\u503c\u672a\u4fee\u6539"
            ]
          },
          {
            "product": "mongodb",
            "vendor": "@langchain",
            "versions": [
              "\u5c55\u793a\u9884\u7b97\u5df2\u7528\u5c3d\uff1b\u539f\u59cb\u4fdd\u5b58\u503c\u672a\u4fee\u6539"
            ]
          }
        ],
        "source": "security-advisories@github.com"
      }
    ],
    "cveTags": [],
    "descriptions": [
      {
        "lang": "en",
        "value": "LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured session identifier at runtime, allowing the identifier to be interpreted as a MongoDB query condition rather than as a literal value when multiple users\u0027 histories are stored in a shared MongoDB collection. An attacker able to invoke chat-history operations can read, modify, or delete another user\u0027s stored conversation. Applications using authenticated, server-controlled string identifiers are not affected. This issue is fixed in version 1.3.1."
      }
    ],
    "id": "CVE-2026-106119",
    "lastModified": "2026-10-06T20:17:17.820",
    "metrics": {
      "cvssMetricV40": [
        {
          "cvssData": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "availabilityRequirement": "NOT_DEFINED",
            "baseScore": 6.0,
            "baseSeverity": "MEDIUM",
            "confidentialityRequirement": "NOT_DEFINED",
            "exploitMaturity": "NOT_DEFINED",
            "integrityRequirement": "NOT_DEFINED",
            "modifiedAttackComplexity": "NOT_DEFINED",
            "modifiedAttackRequirements": "NOT_DEFINED",
            "modifiedAttackVector": "NOT_DEFINED",
            "modifiedPrivilegesRequired": "NOT_DEFINED",
            "modifiedSubAvailabilityImpact": "NOT_DEFINED",
            "modifiedSubConfidentialityImpact": "NOT_DEFINED",
            "modifiedSubIntegrityImpact": "NOT_DEFINED",
            "modifiedUserInteraction": "NOT_DEFINED",
            "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
            "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
            "modifiedVulnIntegrityImpact": "NOT_DEFINED",
            "privilegesRequired": "LOW",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
            "version": "4.0",
            "vulnAvailabilityImpact": "NONE",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "LOW",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "source": "security-advisories@github.com",
          "type": "Secondary"
        }
      ],
      "ssvcV203": [
        {
          "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "ssvcData": {
            "id": "CVE-2026-106119",
            "options": [
              "\u5c55\u793a\u9884\u7b97\u5df2\u7528\u5c3d\uff1b\u539f\u59cb\u4fdd\u5b58\u503c\u672a\u4fee\u6539",
              "\u5c55\u793a\u9884\u7b97\u5df2\u7528\u5c3d\uff1b\u539f\u59cb\u4fdd\u5b58\u503c\u672a\u4fee\u6539",
              "\u5c55\u793a\u9884\u7b97\u5df2\u7528\u5c3d\uff1b\u539f\u59cb\u4fdd\u5b58\u503c\u672a\u4fee\u6539"
            ],
            "role": "CISA Coordinator",
            "timestamp": "2026-10-06T19:45:00.727020Z",
            "version": "2.0.3"
          }
        }
      ]
    },
    "published": "2026-10-06T19:17:42.800",
    "references": [
      {
        "source": "security-advisories@github.com",
        "url": "https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af"
      },
      {
        "source": "security-advisories@github.com",
        "url": "https://github.com/langchain-ai/langchainjs/pull/11672"
      },
      {
        "source": "security-advisories@github.com",
        "url": "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1"
      },
      {
        "source": "security-advisories@github.com",
        "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95"
      }
    ],
    "sourceIdentifier": "security-advisories@github.com",
    "vulnStatus": "Awaiting Analysis",
    "weaknesses": [
      {
        "description": [
          {
            "lang": "en",
            "value": "CWE-943"
          }
        ],
        "source": "security-advisories@github.com",
        "type": "Secondary"
      }
    ]
  },
  "record_path": "$.vulnerabilities[8].cve"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-10-12 05:44 UTC2026-10-06 19:17 UTC5e5ff8da9ce7279dbf3beb217bcbca8598394d4ccb02aa8ae7a6c59ae81921d2
可引用分片 · 2 段

CHK-48982cf72178c4339412f440

CVE-2026-106119
LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured session identifier at runtime, allowing the identifier to be interpreted as a MongoDB query condition rather than as a literal value when multiple users' histories are stored in a shared MongoDB collection. An attacker able to invoke chat-history operations can read, modify, or delete another user's stored conversation. Applications using authenticated, server-controlled string identifiers are not affected. This issue is fixed in version 1.3.1.
cvss: {"authority": "security-advisories@github.com", "score": 6.0, "type": "Secondary", "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "version": "4.0"}
affected_products: {"authority": "security-advisories@github.com", "product": {"product": "langchainjs", "vendor": "langchain-ai"}}
affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "langchainjs", "vendor": "langchain-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}}

CHK-30a6c81a62a9e8e856886d4f

in-ai"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.5.14"}}
affected_products: {"authority": "security-advisories@github.com", "product": {"product": "mongodb", "vendor": "@langchain"}}
affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "mongodb", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.3.1"}}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af"}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/pull/11672"}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1"}
references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95"}
补充资料

中文译文

正文译文暂缺,以下仅为中文摘要。

中文摘要

MongoDBChatMessageHistory未校验会话标识类型,可致跨用户读改删聊天记录

已采集原文

访问来源网页

LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured session identifier at runtime, allowing the identifier to be interpreted as a MongoDB query condition rather than as a literal value when multiple users' histories are stored in a shared MongoDB collection. An attacker able to invoke chat-history operations can read, modify, or delete another user's stored conversation. Applications using authenticated, server-controlled string identifiers are not affected. This issue is fixed in version 1.3.1.

原文依据