CVE-2026-40978: SQL Injection
Published Apr 28, 2026
·Updated
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 Software
3 affected components
maven/org.springframework/spring-ai>=1.0.0<=1.0.5, >=1.1.0<=1.1.4
VMware Spring Ai>=1.0.0<1.0.6
VMware Spring Ai>=1.1.0<1.1.5
Event History
Apr 28, 2026
CVE Published
via MITRE·07:18 AM
Data Sourced
via MITRE·07:18 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeaknessAffected Software
Frequently Asked Questions
1
What is the severity of CVE-2026-40978?
CVE-2026-40978 is considered a high-severity SQL injection vulnerability in Spring AI's CosmosDBVectorStore.
2
How do I fix CVE-2026-40978?
To fix CVE-2026-40978, upgrade Spring AI to version 1.0.6 or 1.1.5 or later.
3
What versions are affected by CVE-2026-40978?
CVE-2026-40978 affects Spring AI versions 1.0.0 to 1.0.5 and 1.1.0 to 1.1.4.
4
What type of vulnerability is CVE-2026-40978?
CVE-2026-40978 is an SQL injection vulnerability that allows attackers to execute arbitrary SQL queries.
5
Where can I learn more about CVE-2026-40978?
For more information about CVE-2026-40978, refer to the official security advisory posted by Spring.