Security fix · CVE-2026-114510
Flexible GraphRAG is a Python framework for building graph and retrieval-augmented generation applications across multiple graph, vector, and search backends.
Published Oct 22, 2026 · catalog updated Oct 27, 2026 · Flexible GraphRAG is a
Last checked Nov 8, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-114510. EPSS is 0.36%. Act only if a listed version of Flexible GraphRAG is a is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Flexible GraphRAG is a).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- High7.1
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.36%
- Remediation
- Version ranges on file
- Affected products
- pip flexible-graphrag · pypi flexible-graphrag
**Description** def _escape(v: str) -> str: return str(v).replace("'", "\\'").replace("\\", "\\\\") The escaping order is backwards, exactly like the classic HTML double-escape bug: step 1 inserts a literal backslash in front of every ', then step 2 re-matches that just-inserted backslash and doubles it. For an input ending in a single quote, the two steps combined produce \\' (two backslashes followed by the quote) in the output — which, under the standard backslash-escape convention used by Cypher/openCypher single-quoted string literals, is parsed as one escaped backslash followed by an unescaped, string-terminating quote. The quote is not neutralized; the string breaks open. This escaped value is interpolated directly into Cypher query strings built by string formatting (not parameters) at 5 call sites in the same method: self.lc_graph.query( f"MERGE (n: {{id: '{_escape(node.id)}'}}) " f"{props}" f"RETURN distinct 'done' AS result" ) ... self.lc_graph.query( f"MATCH (a: {{id: '{_escape(rel.source.id)}'}}), " f"(b: {{id: '{_escape(rel.target.id)}'}}) " f"MERGE (a)-[r: ]->(b) " f"{props}" f"RETURN distinct 'done' AS result" ) node.type, rel.source.type, rel.target.type and rel_type are also interpolated into backtick-quoted identifiers with no escaping at all. Where the attacker-controlled data comes from: node/rel objects are LLM-extracted entities and relationships derived from ingested document content (the whole point of this GraphRAG pipeline). Document content is therefore untrusted input relative to this database layer — a classic indirect-prompt-injection-to-query-injection chain: craft a document whose text causes the extraction LLM to produce an entity id containing the payload below, ingest it, and the broken escape function turns it into live Cypher. **Impact** Full Cypher clause injection into lc_graph.query() calls that run with no query parameterization and no read-only restriction visible in this adapter. Demonstrated impact: appending a second cla
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- pip flexible-graphrag>= 0.6.0, < 0.8.2
- pypi flexible-graphragversion unspecified
How to fix CVE-2026-114510
Upgrade
CVE-2026-114510 lists a fix boundary at 0.8.2. Compare the installed build with that boundary before you change production.
Version check
Affected < 0.8.2
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-114510. EPSS is 0.36%. Act only if a listed version of Flexible GraphRAG is a is installed.
Which versions are affected?
Compare what you have installed with >= 0.6.0, < 0.8.2. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-116; CWE-943. EPSS 0.36%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 22, 2026 · NIST NVD
Detected
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_doc
Oct 27, 2026 · GitHub Advisory Database
Updated
**Description** def _escape(v: str) -> str: return str(v).replace("'", "\\'").replace("\\", "\\\\") The escaping order is backwards, exactly like the classic HTML double-escape bug: step 1 inserts a literal backslash in front of every ', then step 2 re-matches that just-inserted backslash and doubles it. For an input ending in a single quote, the two steps combined produce \\' (two backslashes fol
Sources
- CVE.orgVulnerability recordCVE-2026-114510
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-114510
30-day exploitation probability 0.36%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-vqrg-773h-4wxc
Flexible GraphRAG: Cypher/Graph Injection via broken string-escaping in FalkorDB adapter (_escape()) - full graph wipe from ingested-document content
github.com - GitLab Advisory DatabasePackage advisoryCVE-2026-114510
Description def _escape(v: str) -> str: return str(v).replace("'", "'").replace("", "\") The escaping order is backwards, exactly like the classic HTML double-escape bug: step 1 inserts a literal backslash in front of every ', then step 2 re-matches that just-inserted backslash and doubles it. For an input ending in a single quote, the two steps combined produce ' (two backslashes followed by
advisories.gitlab.com - NIST NVDVulnerability recordCVE-2026-114510
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 e
nvd.nist.gov
References
Freshness
Last verified in this catalog Nov 8, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- FIRST EPSSNov 8, 2026
- GitLab Advisory DatabaseOct 28, 2026
- GitHub Advisory DatabaseOct 27, 2026
- CVE.orgOct 23, 2026
- NIST NVDOct 22, 2026