Spring AI has SQL Injection in CosmosDBVectorStore.doDelete()
Date: 2026-04
Affected: maven/org.springframework.ai:spring-ai-azure-cosmos-db-store, maven/org.springframework.ai:spring-ai-azure-cosmos-db-store
Attack vector: sql-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-40978
CWE: CWE-89
CVSS: 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)

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).


Mitigations:

Architectural layers (MAESTRO):