Vulnerabilities in pkg:npm/@langchain/redis
PACKAGECVE-2026-105799 is a LOW redisearch filter injection vulnerability (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) affecting LangChain libraries in the npm ecosystem. The issue involves redisearch filter injection via unescaped tag/text values. Remediation is available by upgrading affected packages to version 1.1.1.
pkg:npm/@langchain/redis
Vulnerability advisories affecting package pkg:npm/@langchain/redis. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5x6v-p487-7qh2 | CVE-2026-105799 | LOW | LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values |
CVE-2026-105799 at a Glance
How to Fix CVE-2026-105799
To remediate this vulnerability, upgrade all affected LangChain dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @langchain/redis@1.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @langchain/redis
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-105799, inspect your project dependencies using npm:
npm ls @langchain/redis
Analyze the terminal output to locate any version of LangChain in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.
Note: The npm ls @langchain/redis command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic, where the product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query. In LangChain, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-105799 Affected LangChain Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@langchain/redis
|
npm |
< 1.1.1
|
1.1.1
|
References
Frequently Asked Questions
What is CVE-2026-105799?
Which LangChain versions are affected?
What version fixes CVE-2026-105799?
Is @langchain/redis affected?
What CWE is associated with CVE-2026-105799?
How can I check npm dependencies for CVE-2026-105799?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5x6v-p487-7qh2",
"modified" : "2026-10-06T15:32:34Z",
"published" : "2026-10-06T15:32:34Z",
"aliases" : [ "CVE-2026-105799" ],
"summary" : "LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values",
"details" : "## Summary\n\n`@langchain/redis` did not properly escape values used to construct structured RediSearch TAG and TEXT filters. An application that passes attacker-controlled values into these filters could allow the attacker to alter the resulting search query.\n\n## Affected versions\n\n`@langchain/redis` versions through 1.1.0 are affected.\n\n## Impact\n\nAn attacker who can control values passed to the affected structured TAG or TEXT filters can inject RediSearch syntax and alter or broaden the resulting search query. In applications that use an attacker-influenceable filter as a tenant or document-access boundary, this may expose indexed documents outside the attacker's intended scope.\n\n## Remediation\n\nUpgrade to `@langchain/redis` 1.1.1 or later.\n\nThe fix escapes RediSearch special characters, validates field names and structured filter types, and applies these protections across fluent filter builders and custom-schema query construction.\n\n## Credits\n\nThanks to @thesanjok and @shovanchakraborty for reporting this issue.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@langchain/redis"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.1.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-5x6v-p487-7qh2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105799"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langchainjs/pull/10701"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/langchain-ai/langchainjs"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/redis@1.1.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-943" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-06T15:32:34Z",
"nvd_published_at" : "2026-10-06T15:17:17Z"
}
}