{"id":"GHSA-5x6v-p487-7qh2","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.","aliases":["CVE-2026-105799"],"modified":"2026-10-06T15:46:46.535997147Z","published":"2026-10-06T15:32:34Z","database_specific":{"nvd_published_at":"2026-10-06T15:17:17Z","cwe_ids":["CWE-943"],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2026-10-06T15:32:34Z"},"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"}],"affected":[{"package":{"name":"@langchain/redis","ecosystem":"npm","purl":"pkg:npm/%40langchain/redis"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.1.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-5x6v-p487-7qh2/GHSA-5x6v-p487-7qh2.json"}}],"schema_version":"1.9.0","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"}]}