---
id: CVE-2026-114510
title: >-
  Flexible GraphRAG: Cypher/Graph Injection via broken string-escaping in
  FalkorDB adapter (_escape()) - full graph wipe from ingested-document content
summary: >-
  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/gr…
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-116
  - CWE-943
vendor: stevereiner
product: flexible-graphrag
affected:
  - 'flexible-graphrag >= 0.6.0, < 0.8.2'
published: '2026-10-22'
updated: '2026-10-22'
sourceUpdated: '2026-10-22T14:46:52.353Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114510'
references:
  - url: >-
      https://github.com/stevereiner/flexible-graphrag/security/advisories/GHSA-vqrg-773h-4wxc
    label: >-
      https://github.com/stevereiner/flexible-graphrag/security/advisories/GHSA-vqrg-773h-4wxc
  - url: >-
      https://github.com/stevereiner/flexible-graphrag/commit/9ace8d47e198ce3f15dbf22853e396ab4e9884fa
    label: >-
      https://github.com/stevereiner/flexible-graphrag/commit/9ace8d47e198ce3f15dbf22853e396ab4e9884fa
  - url: 'https://github.com/stevereiner/flexible-graphrag/releases/tag/v0.8.2'
    label: 'https://github.com/stevereiner/flexible-graphrag/releases/tag/v0.8.2'
tags:
  - cve.org
ingestedAt: '2026-10-22T22:00:50.279Z'
---

## Overview

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.

## Affected

- `flexible-graphrag >= 0.6.0, < 0.8.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
