SQL Injection Affecting org.springframework.ai:spring-ai-azure-cosmos-db-store package, versions [,1.0.6)[1.1.0-M1, 1.1.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (15th 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKAI-16316419
  • published28 Apr 2026
  • disclosed27 Apr 2026
  • creditSharlongWen

Introduced: 27 Apr 2026

NewCVE-2026-40978  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade org.springframework.ai:spring-ai-azure-cosmos-db-store to version 1.0.6, 1.1.5 or higher.

Overview

org.springframework.ai:spring-ai-azure-cosmos-db-store is a Spring AI Vector Store for Azure Cosmos DB

Affected versions of this package are vulnerable to SQL Injection via document ID handling in CosmosDBVectorStore. An attacker can execute arbitrary SQL queries by supplying crafted document IDs, as user-controlled input is incorporated into Cosmos DB queries without proper sanitization or parameterization.

CVSS Base Scores

version 4.0
version 3.1