Skip to content
HighVulnerability

GHSA-gg5m-55jj-8m5g: Graphiti vulnerable to Cypher Injection via unsanitized node_labels in search filters

Published
Record updated
View JSON
Affected
  • graphiti-core <= 0.28.1
Fixed in
0.28.2
  • released March 11, 2026, 1 day before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Graphiti versions 0.28.1 and earlier contained a Cypher injection flaw in shared search-filter construction for non-Kuzu backends. Attacker-controlled values in SearchFilters.node_labels were concatenated directly into Cypher label expressions, and in MCP deployments an LLM client could be steered via prompt injection into calling search_nodes with crafted entity_types values. Affected backends were Neo4j, FalkorDB, and Neptune; successful exploitation could read, modify, or delete graph data and bypass logical group isolation.

Mitigation

Fixed in 0.28.2. Upgrade to 0.28.2 or later, which adds validation of SearchFilters.node_labels, label validation in shared search-filter constructors, validation of entity node labels in persistence query builders, and validation of group_ids in shared search fulltext helpers. If upgrading is not possible: do not expose Graphiti MCP tools to untrusted users or to LLM workflows processing untrusted prompt content, avoid passing untrusted values into SearchFilters.node_labels or MCP entity_types, and restrict graph database credentials to the minimum required privileges.