ADVISORIES

GitHub Advisory Database

GHSA-7cj7-rcw6-p68v

Spring AI has a Cypher Injection vulnerability in Neo4jVectorFilterExpressionConverter

Details

Spring AI's spring-ai-neo4j-store contains a Cypher injection vulnerability in Neo4jVectorFilterExpressionConverter. When a user-controlled string is passed as a filter expression key in Neo4jVectorFilterExpressionConverter of spring-ai-neo4j-store, doKey() embeds the key into a backtick-delimited Cypher property accessor (node.metadata.) after stripping only double quotes, without escaping embedded backticks. This issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework.ai:spring-ai-neo4j-store
From 1.0.0-M5 before 1.0.5 (fixed in 1.0.5)
Mavenorg.springframework.ai:spring-ai-neo4j-store
From 1.1.0-M1 before 1.1.4 (fixed in 1.1.4)

References