CVE-2026-40978

published 28 Apr 2026 · updated 29 Apr 2026

SQL injection vulnerability in Spring AI's `CosmosDBVectorStore` allows attackers to execute arbitrary SQL queries via crafted document IDs

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.0.6 and 1.1.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Spring>=1.0.0 <1.0.6, >=1.1.0 <1.1.51.0.6, 1.1.5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40978 severity on Zeptric[![CVE-2026-40978](https://zeptric.io/badge/cve/CVE-2026-40978.svg)](https://zeptric.io/cve/CVE-2026-40978)