Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114510 Overview
CVE-2026-114510 is a Cypher injection vulnerability in Flexible GraphRAG, a Python framework for building graph and retrieval-augmented generation (RAG) applications. The flaw affects versions 0.6.0 through 0.8.1 and resides in the _escape() helper in flexible-graphrag/langchain/graph/pg_store_adapters/falkordb_adapter.py. The helper escapes quotes before backslashes, allowing an inserted escape to be doubled and a quote to terminate the string early. Attackers who influence ingested document content can cause the extraction model to emit malicious entity or relationship values that reach FalkorDB queries assembled by FalkorDBAdapter.add_graph_documents.
Critical Impact
Attacker-controlled ingested content can inject Cypher clauses that modify or delete graph data and, when query results are surfaced to users or an LLM, disclose stored graph data.
Affected Products
- Flexible GraphRAG versions 0.6.0 through 0.8.1
- Deployments configured with GRAPH_BACKEND=langchain and GRAPH_DB=falkordb
- The FalkorDBAdapter in the LangChain graph store adapters (the LlamaIndex FalkorDB store is not affected)
Discovery Timeline
- 2026-10-22 - CVE CVE-2026-114510 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114510
Vulnerability Analysis
The vulnerability is a Cypher injection flaw [CWE-116] in the FalkorDB LangChain adapter. The _escape() helper applies escaping steps in the wrong order: it escapes quote characters first and then escapes backslashes. An attacker-supplied quote preceded by a backslash becomes a doubled escape sequence that allows the quote to break out of the surrounding string literal in the generated Cypher query. Once the string literal is terminated, additional Cypher clauses in the injected value execute as part of the assembled query.
The adapter also inserts dynamic node labels and relationship type identifiers directly into backtick-quoted positions in the query without safe parameterization. These identifier positions provide a second injection surface alongside the string-literal escaping defect.
Root Cause
The root cause is improper encoding or escaping of output [CWE-116] in _escape(). Because quotes are escaped before backslashes, the escaping is non-idempotent and reversible by an attacker. The adapter builds Cypher by string interpolation in FalkorDBAdapter.add_graph_documents rather than using parameterized queries, so any flaw in escaping translates directly into query injection.
Attack Vector
Exploitation requires an attacker to influence content ingested by the RAG pipeline. The entity extraction model processes the content and emits entity or relationship values containing crafted quote and backslash sequences. These values pass through _escape() and are interpolated into Cypher statements that run against FalkorDB. The injected clauses can create, modify, or delete graph nodes and relationships. When calling code returns query results to a user or to a downstream LLM, the same vector enables disclosure of graph data.
No synthetic exploit code is published here. See the GitHub Security Advisory GHSA-vqrg-773h-4wxc for the maintainer's technical description.
Detection Methods for CVE-2026-114510
Indicators of Compromise
- Unexpected CREATE, MERGE, SET, DELETE, or DETACH DELETE clauses in FalkorDB query logs that originated from the ingestion pipeline rather than application code paths
- Graph nodes or relationships containing stray quote, backslash, or Cypher keyword fragments in property values
- Ingested documents containing sequences such as \' or \\' embedded in text intended for entity extraction
Detection Strategies
- Enable FalkorDB query logging and compare executed Cypher against the template patterns used by FalkorDBAdapter.add_graph_documents
- Diff graph contents before and after each ingestion job to detect out-of-schema mutations such as unexpected label creation or mass deletions
- Review LLM extraction outputs for entity or relationship strings that contain Cypher metacharacters prior to adapter calls
Monitoring Recommendations
- Alert on ingestion jobs that produce an abnormal number of graph writes, deletions, or new label types
- Monitor application logs for FalkorDB errors referencing syntax or parser failures, which often precede successful injection attempts
- Track the version of flexible-graphrag deployed and alert on any instance below 0.8.2 running the FalkorDB backend
How to Mitigate CVE-2026-114510
Immediate Actions Required
- Upgrade Flexible GraphRAG to version 0.8.2, which contains the fix
- Audit FalkorDB graph data for unauthorized modifications introduced since 0.6.0 was deployed
- Restrict ingestion sources to trusted content until the upgrade is completed
Patch Information
The issue is fixed in Flexible GraphRAG 0.8.2. The remediation is published in GitHub Release v0.8.2 and the fix commit is available at GitHub Commit 9ace8d4. Full technical details are documented in GitHub Security Advisory GHSA-vqrg-773h-4wxc.
Workarounds
- Switch the graph backend away from the LangChain FalkorDB adapter; the LlamaIndex FalkorDB store is not affected
- Restrict the FalkorDB account used by the adapter to the minimum privileges needed, limiting the blast radius of injected clauses
- Validate and sanitize ingested documents, rejecting content containing suspicious escape sequences before it reaches the extraction model
# Upgrade to the patched release
pip install --upgrade "flexible-graphrag>=0.8.2"
# Verify installed version
pip show flexible-graphrag | grep -i version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

