Intel

AIKIDO-2026-10672

spring-ai-client-chat is vulnerable to SQL Injection

SQL InjectionCVE-2026-40978 Published Apr 30, 2026

88

High Risk

This Affects:

JAVAspring-ai-client-chat
1.0.0 - 1.0.5
Fixed in 1.0.6
1.1.0 - 1.1.4
Fixed in 1.1.5
Are you affected? Scan for Free

TL;DR

Affected versions of Spring AI are vulnerable to SQL injection. In Spring AI's CosmosDBVectorStore allows attackers to execute arbitrary SQL queries via crafted document IDs. Only applications that use CosmosDBVectorStore and pass user-supplied input as document ids are affected.

Who does this affect?

You are affected if using a vulnerable version and your applications uses CosmosDBVectorStore.

Background info

spring-ai-client-chat is vulnerable to SQL Injection in versions 1.1.0 - 1.1.4 and 1.0.0 - 1.0.5.

How to fix this

Upgrade the org.springframework.ai:spring-ai-client-chat library to the patch version.