Spring AI Cypher Injection Vulnerability in Neo4jVectorFilterExpressionConverter

Vulnerability

A Cypher injection vulnerability has been identified in the `spring-ai-neo4j-store` component of Spring AI versions 1.0.0 prior to 1.0.5 and 1.1.0 prior to 1.1.4. The vulnerability arises in the `Neo4jVectorFilterExpressionConverter`, where user-controlled strings can be injected as filter expression keys. The `doKey()` method embeds these keys into a backtick-delimited Cypher property accessor, specifically `node.metadata.`, but only removes double quotes without properly escaping any embedded backticks. This flaw could be exploited to manipulate Cypher queries in unintended ways.

Impact

Exploitation of this vulnerability allows for Cypher injection, where an attacker can manipulate Cypher queries by injecting malicious strings that are not properly sanitized. This could lead to unauthorized data access or modification within the Neo4j database.

Remediation

Users should upgrade to Spring AI version 1.0.5 or 1.1.4, depending on their current version.

Added: Mar 27, 2026, 6:24 AM
Updated: Mar 27, 2026, 6:24 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.3
exploitability
6.8
remediation
0.0
relevance
4.8
threat
0.0
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.