摘要与解读
MongoDBChatMessageHistory会话标识未强制字符串,可致跨会话访问。
六维情报分析
6 个维度 · 原文可溯源影响范围
- @langchain/mongodb · <= 1.3.0(不高于 1.3.0)
-
MongoDBChatMessageHistory未在运行时强制session标识符为字符串,结构化标识符可能被当作MongoDB查询条件。受影响条件:应用将不可信session标识符传入该类且多用户历史存于同一集合,攻击者可能读取、修改或删除他人会话。
原文依据 · 2
原文引文
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看原文 · v1原文引文
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看原文 · v1
关联资产
- @langchain/mongodb · npm
-
来源提及npm包@langchain/mongodb(受影响<=1.3.0,修复1.3.1)及MongoDBChatMessageHistory组件;
原文依据 · 2
原文引文
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看原文 · v1原文引文
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看原文 · v1
风险评估
-
来源称可导致跨会话访问他人对话记录(读/改/删)。CVSS出现两个值:0.0(vector为空)与6.0(CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N),存在冲突,EPSS与实际利用成功率未提供。
原文依据 · 2
原文引文
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看原文 · v1原文引文
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看原文 · v1
相关研究
-
公告标题为LangChain的MongoDBChatMessageHistory查询注入导致跨会话访问,涉及npm包@langchain/mongodb;引用指向langchain-ai/langchainjs安全公告GHSA-m6rx-h84q-8r95(WEB类型)。
原文依据 · 2
原文引文
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看原文 · v1原文引文
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看原文 · v1
验证资料
-
来源为GitHub安全公告文本,列出受影响版本<=1.3.0、修复版本1.3.1及CVSS向量,但所选摘录未包含PoC、复现步骤或实验结果;独立复现情况未知。
原文依据 · 2
原文引文
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看原文 · v1原文引文
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看原文 · v1
处置建议
-
来源明确建议升级为修复方案,升级至@langchain/mongodb 1.3.1;另可核查是否将不可信请求字段直接作为session标识符传入,并确认多用户历史是否共用同一集合。
原文依据 · 2
原文引文
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看原文 · v1原文引文
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看原文 · v1
模型与引文记录
- 模型
- mimo-v2.6-pro
- 生成时间
- 记录编号
- REQ-34383ebaff3946fd9b18d4fddfb4a894
- 分析原文
- 查看原文 · v1
分析与审核记录
AI 情报分析
mimo-v2.6-pro · 2026-10-17 12:27 UTC影响范围
MongoDBChatMessageHistory未在运行时强制session标识符为字符串,结构化标识符可能被当作MongoDB查询条件。受影响条件:应用将不可信session标识符传入该类且多用户历史存于同一集合,攻击者可能读取、修改或删除他人会话。
原文依据 · 2 处
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看知识库原文 · 字符 0–600 · v1
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看知识库原文 · 字符 1251–1851 · v1
风险评估
来源称可导致跨会话访问他人对话记录(读/改/删)。CVSS出现两个值:0.0(vector为空)与6.0(CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N),存在冲突,EPSS与实际利用成功率未提供。
原文依据 · 2 处
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看知识库原文 · 字符 1251–1851 · v1
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看知识库原文 · 字符 0–600 · v1
相关研究
公告标题为LangChain的MongoDBChatMessageHistory查询注入导致跨会话访问,涉及npm包@langchain/mongodb;引用指向langchain-ai/langchainjs安全公告GHSA-m6rx-h84q-8r95(WEB类型)。
原文依据 · 2 处
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看知识库原文 · 字符 1251–1851 · v1
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看知识库原文 · 字符 0–600 · v1
验证资料
来源为GitHub安全公告文本,列出受影响版本<=1.3.0、修复版本1.3.1及CVSS向量,但所选摘录未包含PoC、复现步骤或实验结果;独立复现情况未知。
原文依据 · 2 处
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看知识库原文 · 字符 1251–1851 · v1
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看知识库原文 · 字符 0–600 · v1
适用对象
来源提及npm包@langchain/mongodb(受影响<=1.3.0,修复1.3.1)及MongoDBChatMessageHistory组件;
原文依据 · 2 处
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看知识库原文 · 字符 1251–1851 · v1
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看知识库原文 · 字符 0–600 · v1
处置建议
来源明确建议升级为修复方案,升级至@langchain/mongodb 1.3.1;另可核查是否将不可信请求字段直接作为session标识符传入,并确认多用户历史是否共用同一集合。
原文依据 · 2 处
from an untrusted request field. Upgrading remains the recommended remediation. affected_products: {"ecosystem": "npm", "name": "@langchain/mongodb"} affected_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "range": "<= 1.3.0"} fixed_versions: {"package": {"ecosystem": "npm", "name": "@langchain/mongodb"}, "version": "1.3.1"} cvss: {"score": 0.0, "vector": null} cvss: {"score": 6.0, "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"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6
查看知识库原文 · 字符 1251–1851 · v1
GHSA-m6rx-h84q-8r95 ## Impact `MongoDBChatMessageHistory` did not enforce the documented string type for session identifiers at runtime. 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. An attacker who can invoke chat-history operations may be able to read, modify, or delete another user’s stored conversation. Applications that deri
查看知识库原文 · 字符 0–600 · v1
由大模型梳理影响范围、风险、研究方法、验证资料、适用对象和处置建议。
请先在富化流程中配置并授权后台模型分析。
模型分析设置情报标识:GHSA-m6rx-h84q-8r95 · CVE-2026-106119
来源字段与 CVSS 指标
受影响产品
@langchain/mongodb · npm
查看来源依据
结构化证据路径 $[37].vulnerabilities[0].package
{"ecosystem": "npm", "name": "@langchain/mongodb"}受影响版本
@langchain/mongodb · <= 1.3.0(不高于 1.3.0)
查看来源依据
结构化证据路径 $[37].vulnerabilities[0].vulnerable_version_range
"<= 1.3.0"
字段所属产品与版本上下文
[
{
"format": "github_advisory",
"json_path": "$[37].vulnerabilities[0]",
"quote": "{\"first_patched_version\": \"1.3.1\", \"package\": {\"ecosystem\": \"npm\", \"name\": \"@langchain/mongodb\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 1.3.0\"}",
"record_path": "$.vulnerabilities[0]"
}
]来源列出的修复版本
@langchain/mongodb · 1.3.1
查看来源依据
结构化证据路径 $[37].vulnerabilities[0].first_patched_version
"1.3.1"
字段所属产品与版本上下文
[
{
"format": "github_advisory",
"json_path": "$[37].vulnerabilities[0]",
"quote": "{\"first_patched_version\": \"1.3.1\", \"package\": {\"ecosystem\": \"npm\", \"name\": \"@langchain/mongodb\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 1.3.0\"}",
"record_path": "$.vulnerabilities[0]"
}
]来源风险评分
0.0 / 10 · CVSS v3(来源字段)
查看来源依据
结构化证据路径 $[37].cvss_severities.cvss_v3
{"score": 0.0, "vector_string": null}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 · CVSS 4.0
查看来源依据
结构化证据路径 $[37].cvss_severities.cvss_v4
{"score": 6.0, "vector_string": "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"}来源处置建议
Users of affected versions should upgrade to version 1.3.1 or later. The patched version validates session identifiers at runtime and ensures they are compared as literal values in MongoDB queries.
查看来源依据
原文位置 title_and_content · 885–1082
Users of affected versions should upgrade to version 1.3.1 or later. The patched version validates session identifiers at runtime and ensures they are compared as literal values in MongoDB queries.
相关文献与资料
参考资料 · 6 条
https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95
查看链接来源
$[37].references[0]
"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95"
https://nvd.nist.gov/vuln/detail/CVE-2026-106119
查看链接来源
$[37].references[1]
"https://nvd.nist.gov/vuln/detail/CVE-2026-106119"
https://github.com/langchain-ai/langchainjs/pull/11672
查看链接来源
$[37].references[2]
"https://github.com/langchain-ai/langchainjs/pull/11672"
https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af
查看链接来源
$[37].references[3]
"https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af"
https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1
查看链接来源
$[37].references[4]
"https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1"
https://github.com/advisories/GHSA-m6rx-h84q-8r95
查看链接来源
$[37].references[5]
"https://github.com/advisories/GHSA-m6rx-h84q-8r95"