Improper Neutralization of Special Elements in Data Query Logic Affecting graphiti-core package, versions [,0.28.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GRAPHITICORE-15627260
  • published15 Mar 2026
  • disclosed12 Mar 2026
  • creditromain-deperne

Introduced: 12 Mar 2026

CVE-2026-32247  (opens in a new tab)
CWE-943  (opens in a new tab)

How to fix?

Upgrade graphiti-core to version 0.28.2 or higher.

Overview

graphiti-core is an A temporal graph building library

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Data Query Logic via the SearchFilters.node_labels process. An attacker can execute arbitrary Cypher queries within the privileges of the connected graph database by supplying crafted label values that are concatenated into Cypher label expressions without validation. This can lead to unauthorized reading, modification, or deletion of graph data, and bypassing logical group isolation enforced at the query layer. This is only exploitable if untrusted input is passed to SearchFilters.node_labels or if an LLM client is induced to call search_nodes with attacker-controlled entity_types values.

Workaround

This vulnerability can be mitigated by avoiding exposure of the MCP tools to untrusted users or LLM workflows that process untrusted prompt content, not passing untrusted values into SearchFilters.node_labels or MCP entity_types, and restricting graph database credentials to the minimum privileges required.

CVSS Base Scores

version 4.0
version 3.1