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.
Published: 2026-02-20
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Query Injection can lead to unauthorized data access in Redis
Action: Patch
AI Analysis

Impact

An injection flaw in the @langchain/langgraph-checkpoint-redis package allows an attacker to manipulate RediSearch queries by supplying crafted filter keys and values. Because the package concatenates user input directly into queries without proper escaping, special characters can alter the query logic, potentially bypassing intended access controls. This flaw can lead to unauthorized read or modification of stored data, impacting confidentiality and integrity.

Affected Systems

LangGraph’s Redis checkpoint implementation, specifically langchain-ai:langgraphjs’s @langchain/langgraph-checkpoint-redis component, is affected. The vulnerability exists in all releases prior to 1.0.2; the fix was released in 1.0.2. Deployments that use the RedisSaver or ShallowRedisSaver classes with user‑controlled filters are at risk.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity, while an EPSS score of less than 1% suggests a low current exploitation probability, and it is not marked as a known exploited vulnerability. Exploits would likely be performed by an attacker with legitimate or compromised application access who supplies a crafted filter payload; the unescaped input can alter RediSearch query evaluation and bypass intended access checks. Although no authentication bypass is required beyond the application context, the impact on data confidentiality and integrity is significant.

Generated by OpenCVE AI on April 17, 2026 at 17:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the @langchain/langgraph-checkpoint-redis package to version 1.0.2 or later to apply the vendor patch that escapes filter inputs.
  • Review and refactor any custom filter logic to validate and escape all user-supplied keys and values before constructing RediSearch queries, applying general injection prevention against CWE-74.
  • If an immediate update is not possible, implement a temporary workaround by sanitizing all filter keys and values to escape RediSearch’s special syntax characters before concatenation, reducing the risk until a patch is applied.

Generated by OpenCVE AI on April 17, 2026 at 17:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5mx2-w598-339m RediSearch Query Injection in @langchain/langgraph-checkpoint-redis
History

Tue, 24 Feb 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 23 Feb 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Langchain-ai
Langchain-ai langgraphjs
Vendors & Products Langchain-ai
Langchain-ai langgraphjs

Fri, 20 Feb 2026 21:30:00 +0000

Type Values Removed Values Added
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.
Title RediSearch Query Injection in @langchain/langgraph-checkpoint-redis
Weaknesses CWE-74
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Langchain-ai Langgraphjs
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-24T18:33:25.127Z

Reserved: 2026-02-17T03:08:23.490Z

Link: CVE-2026-27022

cve-icon Vulnrichment

Updated: 2026-02-24T18:33:16.867Z

cve-icon NVD

Status : Deferred

Published: 2026-02-20T22:16:28.480

Modified: 2026-04-15T00:35:42.020

Link: CVE-2026-27022

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T17:15:23Z

Weaknesses