LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values
## Summary `@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. ## Affected versions `@langchain/redis` versions through 1.1.0 are affected. ## Impact An 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. ## Remediation Upgrade to `@langchain/redis` 1.1.1 or later. The 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. ## Credits Thanks to @thesanjok and @shovanchakraborty for reporting this issue.
- Products
- @langchain/redis
- Affected versions
- Not specified
- Fixed versions
- 1.1.1
- CVEs
- CVE-2026-105799
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 27 Oct 2026, 11:46 UTC · Revision 1
Source evidence
LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values
core-osv · Original sourcePublished 6 Oct 2026, 15:32 UTC
## Summary `@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. ## Affected versions `@langchain/redis` versions through 1.1.0 are affected. ## Impact An 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. ## Remediation Upgrade to `@langchain/redis` 1.1.1 or later. The 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. ## Credits Thanks to @thesanjok and @shovanchakraborty for reporting this issue.
osv:GHSA-5x6v-p487-7qh2
@langchain/redis
Fixed versions: 1.1.1
Complete source record
{
"id": "4624a3548ed1fab48d75f51590285fb1b6e4c2986851c4a95a05e1e6ee17b602",
"url": "https://osv.dev/vulnerability/GHSA-5x6v-p487-7qh2",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values",
"summary": "## Summary `@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. ## Affected versions `@langchain/redis` versions through 1.1.0 are affected. ## Impact An 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. ## Remediation Upgrade to `@langchain/redis` 1.1.1 or later. The 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. ## Credits Thanks to @thesanjok and @shovanchakraborty for reporting this issue.",
"evidence": "osv:GHSA-5x6v-p487-7qh2",
"products": [
{
"name": {
"value": "@langchain/redis",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "low",
"structured": {
"id": "GHSA-5x6v-p487-7qh2",
"aliases": [
"CVE-2026-105799",
"GHSA-5x6v-p487-7qh2"
],
"metrics": [
{
"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": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1"
}
]
}
],
"package": {
"name": "@langchain/redis",
"purl": "pkg:npm/%40langchain/redis",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-5x6v-p487-7qh2/GHSA-5x6v-p487-7qh2.json",
"last_known_affected_version_range": "<= 1.1.0"
}
}
],
"modified": "2026-10-06T15:46:46.535997147Z",
"provider": "osv",
"references": [
"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-5x6v-p487-7qh2",
"https://nvd.nist.gov/vuln/detail/CVE-2026-105799",
"https://github.com/langchain-ai/langchainjs/pull/10701",
"https://github.com/langchain-ai/langchainjs/commit/880e3969ea643a2147777a4d5e8bd606a697edf7",
"https://github.com/langchain-ai/langchainjs",
"https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/redis@1.1.1"
],
"provider_metadata": {
"cwe_ids": [
"CWE-943"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2026-10-06T15:17:17Z",
"github_reviewed_at": "2026-10-06T15:32:34Z"
}
},
"related_cves": [
{
"value": "CVE-2026-105799",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 89261,
"published_at": "2026-10-06T15:32:34+00:00"
}