CVE-2026-40978
Published:April 28, 2026
Updated:May 18, 2026
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 Packages
https://github.com/spring-projects/spring-ai.git (GITHUB):
Affected version(s) >=v1.0.0 <v1.0.6Fix Suggestion:
Update to version v1.0.6https://github.com/spring-projects/spring-ai.git (GITHUB):
Affected version(s) >=v1.1.0 <v1.1.5Fix Suggestion:
Update to version v1.1.5org.springframework.ai:spring-ai-azure-cosmos-db-store (JAVA):
Affected version(s) >=1.0.0 <1.0.6Fix Suggestion:
Update to version 1.0.6org.springframework.ai:spring-ai-azure-cosmos-db-store (JAVA):
Affected version(s) >=1.1.0 <1.1.5Fix Suggestion:
Update to version 1.1.5Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
EPSS
Base Score:
0.05