CVE-2026-27022: langchain-ai langgraphjs · Injection
Affects langchain-ai langgraphjsSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium : upgrade to 1.0.2 when convenient.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 4.0% chance of exploitation in 30 days – higher than 90% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.2
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade langchain-ai langgraphjs to 1.0.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| langchain-ailanggraphjs | Affected
| Fixed in
|
AI-suggested
To mitigate this vulnerability, organizations should immediately upgrade the @langchain/langgraph-checkpoint-redis package to version 1.0.2 or later, where the issue is fixed by proper escaping of user inputs in RediSearch queries. Additionally, implement strict input validation and sanitization on all user-supplied filter parameters before they reach the query construction logic. Employ the principle of least privilege to restrict who can submit filter queries, minimizing the risk of malicious input. Monitor application logs for unusual query patterns or attempts to inject special RediSearch syntax characters. Consider implementing application-layer access controls and query parameter whitelisting to prevent unauthorized query manipulation. Finally, conduct security code reviews and penetration testing focused on query injection vectors in Redis and LangGraph integrations to detect similar issues proactively.
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.
References
- github.com/langchain-ai/langgraphjs/security/advisories/GHSA-5mx2-w598-339m (opens in a new tab)
- github.com/langchain-ai/langgraphjs/pull/1943 (opens in a new tab)
- github.com/langchain-ai/langgraphjs/commit/814c76dc3938d0f6f7e17ca3bc11d6a12270b2a1 (opens in a new tab)
- github.com/langchain-ai/langgraphjs/releases/tag/@langchain/langgraph-checkpoint-redis@1.0.2 (opens in a new tab)