CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员

资料分析

来源网址https://github.com/advisories/GHSA-m6rx-h84q-8r95新标签页

LangChain: MongoDBChatMessageHistory query injection can allow cross-session access

GitHub JavaScript生态安全公告(全包清单,含非AI安全漏洞) · v1

← 返回本篇情报

根据当前正文片段生成可回溯的分析草稿。

来源摘要

原文摘录,附引用位置。

GHSA-m6rx-h84q-8r95
In affected applications, a structured session identifier could be interpreted as a MongoDB query condition rather than as a literal identifier.
Applications are affected when they pass untrusted session identifier input to MongoDBChatMessageHistory and store multiple users’ histories in the same collection.
查看摘录位置与原文
{
  "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
  "document_id": "DOC-1385d12377f3825518e1e266",
  "end_offset": 19,
  "line_end": 1,
  "line_start": 1,
  "location": "content",
  "quote": "GHSA-m6rx-h84q-8r95",
  "start_offset": 0
}
查看摘录位置与原文
{
  "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
  "document_id": "DOC-1385d12377f3825518e1e266",
  "end_offset": 282,
  "line_end": 4,
  "line_start": 4,
  "location": "content",
  "quote": "In affected applications, a structured session identifier could be interpreted as a MongoDB query condition rather than as a literal identifier.",
  "start_offset": 138
}
查看摘录位置与原文
{
  "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
  "document_id": "DOC-1385d12377f3825518e1e266",
  "end_offset": 450,
  "line_end": 6,
  "line_start": 6,
  "location": "content",
  "quote": "Applications are affected when they pass untrusted session identifier input to `MongoDBChatMessageHistory` and store multiple users\u2019 histories in the same collection.",
  "start_offset": 284
}

产品与版本规范化

unknown / @langchain/mongodb

unknown

来源字段依据
{
  "evidence": {
    "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
    "format": "github_advisory",
    "json_path": "$[37].vulnerabilities[0].package",
    "quote": "{\"ecosystem\": \"npm\", \"name\": \"@langchain/mongodb\"}",
    "record_path": "$.vulnerabilities[0].package"
  },
  "format": "source_package",
  "product": "@langchain/mongodb",
  "raw": {
    "ecosystem": "npm",
    "name": "@langchain/mongodb"
  },
  "vendor": "unknown",
  "version": "unknown"
}

实体与标签

{
  "items": [
    {
      "evidence": {
        "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
        "document_id": "DOC-1385d12377f3825518e1e266",
        "end_offset": 19,
        "line_end": 1,
        "line_start": 1,
        "location": "content",
        "quote": "GHSA-m6rx-h84q-8r95",
        "start_offset": 0
      },
      "type": "vulnerability_identifier",
      "value": "GHSA-m6rx-h84q-8r95"
    },
    {
      "evidence": {
        "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
        "document_id": "DOC-1385d12377f3825518e1e266",
        "end_offset": 1863,
        "line_end": 26,
        "line_start": 26,
        "location": "content",
        "quote": "GHSA-m6rx-h84q-8r95",
        "start_offset": 1844
      },
      "type": "vulnerability_identifier",
      "value": "GHSA-m6rx-h84q-8r95"
    },
    {
      "evidence": {
        "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
        "document_id": "DOC-1385d12377f3825518e1e266",
        "end_offset": 1953,
        "line_end": 27,
        "line_start": 27,
        "location": "content",
        "quote": "CVE-2026-106119",
        "start_offset": 1938
      },
      "type": "vulnerability_identifier",
      "value": "CVE-2026-106119"
    },
    {
      "evidence": {
        "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
        "document_id": "DOC-1385d12377f3825518e1e266",
        "end_offset": 2396,
        "line_end": 31,
        "line_start": 31,
        "location": "content",
        "quote": "GHSA-m6rx-h84q-8r95",
        "start_offset": 2377
      },
      "type": "vulnerability_identifier",
      "value": "GHSA-m6rx-h84q-8r95"
    }
  ],
  "method": "existing_identifier_and_topic_rules",
  "tags": [
    {
      "dimension": "direction",
      "evidence": {
        "dimension": "direction",
        "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
        "end_offset": 152,
        "label": "\u653b\u51fb\u65b9\u6cd5",
        "location": "title_and_content",
        "matched_term": "injection",
        "quote": "LangChain: MongoDBChatMessageHistory query injection can allow cross-session access\nGHSA-m6rx-h84q-8r95\n## Impact\n\n`MongoDBChatMessageHistory` did not e",
        "start_offset": 0
      },
      "label": "\u653b\u51fb\u65b9\u6cd5"
    },
    {
      "dimension": "impact",
      "evidence": {
        "dimension": "impact",
        "document_hash": "1037e5686cdb6433c76429cb5638f2f93c4c3a22d2adc2eb583b8efba9eac841",
        "end_offset": 152,
        "label": "\u5b8c\u6574\u6027",
        "location": "title_and_content",
        "matched_term": "injection",
        "quote": "LangChain: MongoDBChatMessageHistory query injection can allow cross-session access\nGHSA-m6rx-h84q-8r95\n## Impact\n\n`MongoDBChatMessageHistory` did not e",
        "start_offset": 0
      },
      "label": "\u5b8c\u6574\u6027"
    }
  ]
}

去噪与近重复

原始资料保留。当前词法相似簇含 1 份资料。

PoC 静态审查

静态审查范围

仅检查已保存代码的语法信号和来源明确标记的 PoC 链接;

当前资料没有可静态检查的代码块。

订阅此类情报提交 Agent 调查基于来源问答