CVE-2026-40978

High

Description

SQL injection vulnerability in Spring AI's `CosmosDBVectorStore` allows attackers to execute arbitrary SQL queries via crafted document IDs. Affected versions: Spring AI: 1.0.0 - 1.0.5 (fixed in 1.0.6), 1.1.0 - 1.1.4 (fixed in 1.1.5)

SeverityHigh
CVSS8.8
Exploit probability—
ProductVmware Spring Ai
PublishedApr 28, 2026
First seenApr 28, 2026
Weakness typeCWE-89SQL injection

How to fix

Update
  • vmware spring_ai1.0.6, 1.1.5 or later
  • org.springframework.ai:spring-ai-azure-cosmos-db-store1.0.6, 1.1.5 or later

Affected products

ProductAffected versionsFixed in
vmware spring_ai1.0.0 ≤ v < 1.0.6, 1.1.0 ≤ v < 1.1.51.0.6, 1.1.5
org.springframework.ai:spring-ai-azure-cosmos-db-storeMaven1.0.0 ≤ v < 1.0.6, 1.1.0 ≤ v < 1.1.51.0.6, 1.1.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.