CVE-2026-27022 RediSearch Query Injection in @langchain/langgraph-checkpoint-redis
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
@langchain/langgraph-checkpoint-redis is the Redis checkpoint and store implementation for LangGraph. 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. This vulnerability is fixed in 1.0.2.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @langchain/langgraph-checkpoint-redis(npm) | < 1.0.2 | 1.0.2 | Fixed |
| langchain-ai langgraphjs | = < 1.0.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| langchain-ai langgraphjs | = < 1.0.2 | No fix listed |
| @langchain/langgraph-checkpoint-redis(npm) | < 1.0.2 | 1.0.2 |
References
- https://github.com/langchain-ai/langgraphjs/security/advisories/GHSA-5mx2-w598-339m vendor-advisory
- https://github.com/langchain-ai/langgraphjs/pull/1943 patch
- https://github.com/langchain-ai/langgraphjs/commit/814c76dc3938d0f6f7e17ca3bc11d6a12270b2a1 patch
- https://github.com/langchain-ai/langgraphjs/releases/tag/@langchain/langgraph-checkpoint-redis@1.0.2
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product