Skip to content
MediumVulnerability

GHSA-5mx2-w598-339m: RediSearch Query Injection in @langchain/langgraph-checkpoint-redis

Published
Record updated
View JSON
Affected
  • @langchain/langgraph-checkpoint-redis < 1.0.2
Fixed in
1.0.2
  • released February 4, 2026, 13 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
4.0%

Summary

The @langchain/langgraph-checkpoint-redis package contains a RediSearch query injection flaw in the list() methods of RedisSaver and ShallowRedisSaver. Filter keys and values are interpolated without escaping, so an attacker controlling a filter value can inject an OR clause such as `}) | (@thread_id:{*` that matches all threads and bypasses thread isolation, exposing checkpoint data from other users in multi-tenant applications.

Mitigation

The 1.0.2 patch adds an escapeRediSearchTagValue() function that escapes RediSearch special characters and applies escaping to all filter keys before query construction.