| Product | Flexible GraphRAG A third-party product. The advisory mentions LangChain, but this is not a vulnerability in it: it is not counted in its CVEs. |
| Severity | high (CVSS 7.1) |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| Published (NVD) | 2026-10-22 |
| Affected versions | Flexible GraphRAG: >= 0.6.0, < 0.8.2 read from the advisory text: no structured source gives these versions yet |
| Fixed in | 0.8.2 |
| Weakness | CWE-116CWE-943 |
| CISA KEV | not listed |
NVD description
Flexible GraphRAG is a Python framework for building graph and retrieval-augmented generation applications across multiple graph, vector, and search backends. From 0.6.0 until 0.8.2, the _escape() helper in flexible-graphrag/langchain/graph/pg_store_adapters/falkordb_adapter.py escapes quotes before backslashes and then interpolates the result into Cypher assembled by FalkorDBAdapter.add_graph_documents, allowing an inserted escape to be doubled and a quote to terminate the string early. When GRAPH_BACKEND=langchain and GRAPH_DB=falkordb are configured, attacker-influenced ingested document content can cause the extraction model to produce malicious entity or relationship values that reach these queries, allowing injected Cypher clauses to modify or delete graph data and, when the calling code surfaces query results to the user or LLM, disclose graph data. Dynamic node and relationship type identifiers are also inserted into backtick-quoted query positions without safe parameterization. The LlamaIndex FalkorDB store is not affected. This issue is fixed in version 0.8.2.
What to do
- Upgrade Flexible GraphRAG to
0.8.2or later. - Do not expose the component's API or UI to the internet without authentication in front of it.