Medium, CVSS 6.5npmAmendedPublished
RediSearch Query Injection in @langchain/langgraph-checkpoint-redis
CVE-2026-27022 · GHSA-5mx2-w598-339m
- Affected
- npm @langchain/langgraph-checkpoint-redis < 1.0.2
- Fixed in
- 1.0.2· Vendor fix available
- Issue
- A query injection vulnerability exists in the @langchain/langgraph-checkpoint-redis package's filter handling. The RedisSaver and ShallowRedisSaver classes construct RediSearch queries by directly interpolating user-provided filter keys and values without proper escaping. RediSearch has special syntax characters that can modify query behavior, and when user-controlled data contains these characters, the query logic can be manipulated to bypass intended access controls. Attack surface The core vulnerability was in the list() methods of both RedisSaver and ShallowRedisSaver: these methods failed to escape RediSearch special characters in filter keys and values when constructing queries. When unescaped data containing RediSearch syntax was used, the injected operators were interpreted by RediSearch rather than treated as literal search values. This escaping bug enabled the following attack vector: - Thread boundary escape via OR operator: RediSearch uses | as an OR operator with…
Recommended action: Upgrade to 1.0.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.