Description
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.
Published: 2026-10-06
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized Data Exposure
Action: Patch Now
AI Analysis

Impact

LangChain's @langchain/redis component lets attackers inject RediSearch syntax when it receives unescaped tag or text values. The injected syntax can modify the search query and broaden or alter its results. The primary impact is that documents or data that should be protected by tenant or document‑access boundaries can be exposed to unauthorized users, leading to information disclosure.

Affected Systems

The vulnerability affects the @langchain/redis package and the langchain‑ai:langchainjs project in versions prior to 1.1.1. Applications using these libraries without escaping filter inputs are at risk.

Risk and Exploitability

The CVSS score of 2.3 indicates low severity, and the EPSS score is not available, suggesting limited public exploit data. The issue is not listed in the CISA KEV catalog. However, the likely attack vector is an external user able to control tag or text filter values that are passed directly to RediSearch; when a user can influence these values—such as through a tenant boundary—the attacker can craft inputs that broaden the query scope and expose protected documents. This makes the vulnerability relevant for any application where filter values originate from an external source.

Generated by OpenCVE AI on October 6, 2026 at 18:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade @langchain/redis to version 1.1.1 or later to apply the escape fix for RediSearch query filters.
  • Ensure that any tenant or document‑access boundaries are built from validated input before being sent to the library, preventing injection of malicious filter values.
  • Audit application code to locate remaining unescaped tag or text values used in RediSearch queries and refactor them to use safe APIs or escape values explicitly.

Generated by OpenCVE AI on October 6, 2026 at 18:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5x6v-p487-7qh2 LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values
History

Fri, 09 Oct 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Langchain-ai
Langchain-ai langchainjs
Langchain-ai redis
Vendors & Products Langchain-ai
Langchain-ai langchainjs
Langchain-ai redis

Tue, 06 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Description 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.
Title LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values
Weaknesses CWE-943
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}


Subscriptions

Langchain-ai Langchainjs Redis
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-06T17:39:51.463Z

Reserved: 2026-10-05T20:37:19.364Z

Link: CVE-2026-105799

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-06T15:17:17.030

Modified: 2026-10-06T18:16:47.437

Link: CVE-2026-105799

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T08:44:19Z

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic