GHSA-5x6v-p487-7qh2

Suggest an improvement
Source
https://github.com/advisories/GHSA-5x6v-p487-7qh2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-5x6v-p487-7qh2/GHSA-5x6v-p487-7qh2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5x6v-p487-7qh2
Aliases
Published
2026-10-06T15:32:34Z
Modified
2026-10-06T15:46:46Z
Severity
  • 2.3 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-943"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-06T15:32:34Z",
    "nvd_published_at": "2026-10-06T15:17:17Z",
    "severity": "LOW"
}
References

Affected packages

npm / @langchain/redis

Package

Name
@langchain/redis
View open source insights on deps.dev
Purl
pkg:npm/%40langchain/redis

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.1.1

Database specific

last_known_affected_version_range
"<= 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"