摘要与解读
LangChain的@langchain/redis未转义RediSearch过滤器值,可致查询被篡改越权
六维情报分析
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.1.1"}}
- {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "redis", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.1.1"}}
-
来源报告显示,CVE-2026-105799 影响 @langchain/redis 组件,受影响版本为 < 1.1.1,修复版本为 1.1.1。当应用把攻击者可影响的 filter 用作租户或文档访问边界时,注入的 RediSearch 语法会改变或扩大生成的搜索查询,使索引中超出攻击者预期范围的文档被暴露。信任边界在于应用层 filter 与 RediSearch 查询构造之间:只要 filter 值来自外部输入且被当作访问控制条件,后果就是跨租户或越权文档读取。
原文依据 · 2
原文引文
CVE-2026-105799 LangChain is a framework for building LLM-powered applications. Prior to 1.1.1, @langchain/redis does not escape attacker-controlled values in structured RediSearch TAG filters and structured RediSearch TEXT filters, allowing injected RediSearch syntax to alter or broaden the generated search query. When an application uses an attacker-influenceable filter as a tenant or document-access boundary, the modified query can expose indexed documents outside the attacker's intended scope. This issue is fixed in version 1.1.1. cvss: {"authority": "security-advisories@github.com", "scor
查看原文 · v1原文引文
ity": "security-advisories@github.com", "product": {"product": "redis", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "redis", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.1.1"}} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/l
查看原文 · v1
关联资产
- langchain-ai
- @langchain
-
原文明示的关联资产为 @langchain/redis(vendor 为 @langchain,product 为 redis),属于 LangChain 构建 LLM 应用的框架生态,涉及结构化 RediSearch TAG filters 与 TEXT filters 接口及被索引的文档数据。适用前提是版本 < 1.1.1,且应用将攻击者可影响的 filter 用作租户或文档访问边界;1.1.1 为修复版本。未提供本地资产清单,未与任何本地资产匹配。
原文依据 · 2
原文引文
CVE-2026-105799 LangChain is a framework for building LLM-powered applications. Prior to 1.1.1, @langchain/redis does not escape attacker-controlled values in structured RediSearch TAG filters and structured RediSearch TEXT filters, allowing injected RediSearch syntax to alter or broaden the generated search query. When an application uses an attacker-influenceable filter as a tenant or document-access boundary, the modified query can expose indexed documents outside the attacker's intended scope. This issue is fixed in version 1.1.1. cvss: {"authority": "security-advisories@github.com", "scor
查看原文 · v1原文引文
ity": "security-advisories@github.com", "product": {"product": "redis", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "redis", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.1.1"}} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/l
查看原文 · v1
风险评估
-
已报道的风险机制是:@langchain/redis 在结构化 RediSearch TAG filters 与 TEXT filters 中未转义攻击者可控值,注入的 RediSearch 语法可篡改或放宽查询。触发条件是应用将攻击者可影响的 filter 直接用于租户或文档访问边界;若 filter 仅用于非安全用途,暴露面相应收窄。防护优先级应放在访问控制类 filter 的输入处理与版本升级上,因为该路径直接关联越权读取索引文档。
原文依据 · 1
原文引文
CVE-2026-105799 LangChain is a framework for building LLM-powered applications. Prior to 1.1.1, @langchain/redis does not escape attacker-controlled values in structured RediSearch TAG filters and structured RediSearch TEXT filters, allowing injected RediSearch syntax to alter or broaden the generated search query. When an application uses an attacker-influenceable filter as a tenant or document-access boundary, the modified query can expose indexed documents outside the attacker's intended scope. This issue is fixed in version 1.1.1. cvss: {"authority": "security-advisories@github.com", "scor
查看原文 · v1
相关研究
-
来源材料以 NVD 漏洞条目形式给出研究性描述:问题定位在 @langchain/redis 的结构化 RediSearch TAG 与 TEXT filter 转义缺失,机制是注入语法改变生成查询,贡献在于把 filter 注入与租户/文档访问边界失效联系起来。材料仅提供漏洞描述、受影响版本与修复版本及参考链接,未展开具体研究方法或实验设计。
原文依据 · 2
原文引文
CVE-2026-105799 LangChain is a framework for building LLM-powered applications. Prior to 1.1.1, @langchain/redis does not escape attacker-controlled values in structured RediSearch TAG filters and structured RediSearch TEXT filters, allowing injected RediSearch syntax to alter or broaden the generated search query. When an application uses an attacker-influenceable filter as a tenant or document-access boundary, the modified query can expose indexed documents outside the attacker's intended scope. This issue is fixed in version 1.1.1. cvss: {"authority": "security-advisories@github.com", "scor
查看原文 · v1原文引文
ity": "security-advisories@github.com", "product": {"product": "redis", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "redis", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.1.1"}} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/l
查看原文 · v1
验证资料
-
来源报告给出的可核查事实是受影响版本 < 1.1.1、修复版本 1.1.1,并附有 GitHub commit 与仓库参考链接。防御性核查可围绕版本与配置展开:确认部署中 @langchain/redis 的实际版本是否低于 1.1.1,梳理哪些结构化 TAG/TEXT filter 接收外部输入并承担租户或文档访问边界。日志观察可关注查询条件异常放宽、跨租户文档返回等指标;来源未提供实验数字或复现结果。
原文依据 · 2
原文引文
CVE-2026-105799 LangChain is a framework for building LLM-powered applications. Prior to 1.1.1, @langchain/redis does not escape attacker-controlled values in structured RediSearch TAG filters and structured RediSearch TEXT filters, allowing injected RediSearch syntax to alter or broaden the generated search query. When an application uses an attacker-influenceable filter as a tenant or document-access boundary, the modified query can expose indexed documents outside the attacker's intended scope. This issue is fixed in version 1.1.1. cvss: {"authority": "security-advisories@github.com", "scor
查看原文 · v1原文引文
ity": "security-advisories@github.com", "product": {"product": "redis", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "redis", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.1.1"}} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/l
查看原文 · v1
处置建议
-
建议按序处理:先将 @langchain/redis 升级至 1.1.1(来源明确给出的修复版本);再排查所有把外部输入传入结构化 RediSearch TAG/TEXT filter 并充当租户或文档访问边界的调用点,评估其输入来源;随后在升级与配置调整后做回归验证,确认 filter 值不再改变查询范围,并监测跨租户文档返回等异常。上述排查与监测属基于来源机制的条件性建议。
原文依据 · 2
原文引文
CVE-2026-105799 LangChain is a framework for building LLM-powered applications. Prior to 1.1.1, @langchain/redis does not escape attacker-controlled values in structured RediSearch TAG filters and structured RediSearch TEXT filters, allowing injected RediSearch syntax to alter or broaden the generated search query. When an application uses an attacker-influenceable filter as a tenant or document-access boundary, the modified query can expose indexed documents outside the attacker's intended scope. This issue is fixed in version 1.1.1. cvss: {"authority": "security-advisories@github.com", "scor
查看原文 · v1原文引文
ity": "security-advisories@github.com", "product": {"product": "redis", "vendor": "@langchain"}} affected_versions: {"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "redis", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.1.1"}} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7"} references: {"types": ["WEB"], "url": "https://github.com/langchain-ai/l
查看原文 · v1
模型与引文记录
- 模型
- deepseek-flash
- 生成时间
- 记录编号
- REQ-f7fd4dbb8d7043309d94a9c07238398e
- 分析原文
- 查看原文 · v1
情报标识:CVE-2026-105799
来源字段与 CVSS 指标
受影响产品
langchain-ai
查看来源依据
结构化证据路径 $.vulnerabilities[7].cve.affected[0].affectedData[0]
{"product": "langchainjs", "vendor": "langchain-ai", "versions": [{"status": "affected", "version": "< 1.1.1"}]}字段所属产品与版本上下文
[
{
"format": "nvd_2",
"json_path": "$.vulnerabilities[7].cve.affected[0].source",
"quote": "\"security-advisories@github.com\"",
"record_path": "$.affected[0].source"
}
]@langchain
查看来源依据
结构化证据路径 $.vulnerabilities[7].cve.affected[0].affectedData[1]
{"product": "redis", "vendor": "@langchain", "versions": [{"status": "affected", "version": "< 1.1.1"}]}字段所属产品与版本上下文
[
{
"format": "nvd_2",
"json_path": "$.vulnerabilities[7].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.1.1"}}
查看来源依据
结构化证据路径 $.vulnerabilities[7].cve.affected[0].affectedData[0].versions[0]
{"status": "affected", "version": "< 1.1.1"}字段所属产品与版本上下文
[
{
"format": "nvd_2",
"json_path": "$.vulnerabilities[7].cve.affected[0].affectedData[0]",
"quote": "{\"product\": \"langchainjs\", \"vendor\": \"langchain-ai\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.1.1\"}]}",
"record_path": "$.affected[0].affectedData[0]"
},
{
"format": "nvd_2",
"json_path": "$.vulnerabilities[7].cve.affected[0].source",
"quote": "\"security-advisories@github.com\"",
"record_path": "$.affected[0].source"
}
]{"authority": "security-advisories@github.com", "default_status": null, "product": {"product": "redis", "vendor": "@langchain"}, "semantics": "NVD CNA version statement; preserve status changes and versionType", "version_statement": {"status": "affected", "version": "< 1.1.1"}}
查看来源依据
结构化证据路径 $.vulnerabilities[7].cve.affected[0].affectedData[1].versions[0]
{"status": "affected", "version": "< 1.1.1"}字段所属产品与版本上下文
[
{
"format": "nvd_2",
"json_path": "$.vulnerabilities[7].cve.affected[0].affectedData[1]",
"quote": "{\"product\": \"redis\", \"vendor\": \"@langchain\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 1.1.1\"}]}",
"record_path": "$.affected[0].affectedData[1]"
},
{
"format": "nvd_2",
"json_path": "$.vulnerabilities[7].cve.affected[0].source",
"quote": "\"security-advisories@github.com\"",
"record_path": "$.affected[0].source"
}
]来源风险评分
2.3 / 10 · CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/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[7].cve.metrics.cvssMetricV40[0]
{"cvssData": {"Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "Safety": "NOT_DEFINED", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "attackVector": "NETWORK", "availabilityRequirement": "NOT_DEFINED", "baseScore": 2.3, "baseSeverity": "LOW", "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:L/VI:N/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": "LOW", "vulnIntegrityImpact": "NONE", "vulnerabilityResponseEffort": "NOT_DEFINED"}, "source": "security-advisories@github.com", "type": "Secondary"}相关文献与资料
参考资料 · 4 条
https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7
查看链接来源
$.vulnerabilities[7].cve.references[0]
{"source": "security-advisories@github.com", "url": "https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7"}https://github.com/langchain-ai/langchainjs/pull/10701
查看链接来源
$.vulnerabilities[7].cve.references[1]
{"source": "security-advisories@github.com", "url": "https://github.com/langchain-ai/langchainjs/pull/10701"}https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/redis@1.1.1
查看链接来源
$.vulnerabilities[7].cve.references[2]
{"source": "security-advisories@github.com", "url": "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/redis@1.1.1"}https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-5x6v-p487-7qh2
查看链接来源
$.vulnerabilities[7].cve.references[3]
{"source": "security-advisories@github.com", "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-5x6v-p487-7qh2"}