Intel

AIKIDO-2026-10672

spring-ai-azure-cosmos-db-store is vulnerable to SQL Injection

SQL InjectionCVE-2026-40978 Published Apr 30, 2026

88

High Risk

This Affects:

JAVAspring-ai-azure-cosmos-db-store
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-azure-cosmos-db-store 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-azure-cosmos-db-store library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform