HIGH 8.8
CVE-2026-40978
Spring AI has SQL Injection in CosmosDBVectorStore.doDelete()
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).
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.ai » spring-ai-azure-cosmos-db-store | >= 1.0.0, < 1.0.6>= 1.1.0, < 1.1.5 | 1.0.6, 1.1.5 |
Blast radius
1affected artifacts
11affected versions
1dependent artifacts (est.)
11dependent versions
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 11 |
Most used dependents
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-40978 | nvd.nist.gov |
| Package | spring-projects/spring-ai | github.com |
| Web | security/cve-2026-40978 | spring.io |
