Vulnerabilities in pkg:npm/@langchain/redis

PACKAGE
Advisory Identifier: GHSA-5x6v-p487-7qh2
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@langchain/redis

1 Known Advisory Record(s)

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

CVE Identifier CVE-2026-105799
GHSA Identifier GHSA-5x6v-p487-7qh2
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-943: Improper Neutralization of Special Elements in Data Query Logic
Affected Product LangChain
Package Ecosystem npm
Published Date
Last Updated

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.

@langchain/redis fixed: 1.1.1
npm install @langchain/redis@1.1.1
Verify Direct and Transitive Dependencies

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

## 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.

CVE-2026-105799 Affected LangChain Versions

1 component(s)
Fixed Versions:
1.1.1
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?
CVE-2026-105799 is a security vulnerability in LangChain involving RediSearch Filter Injection via Unescaped Tag/Text Values under CWE-943: Improper Neutralization of Special Elements in Data Query Logic.
Which LangChain versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: @langchain/redis.
What version fixes CVE-2026-105799?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @langchain/redis affected?
Yes, @langchain/redis is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What CWE is associated with CVE-2026-105799?
CVE-2026-105799 is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic (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.).
How can I check npm dependencies for CVE-2026-105799?
Run the dependency tree command: 'npm ls @langchain/redis'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}