CVE-2026-40978: SQL injection vulnerability in Spring AI's `CosmosDBVectorStore` allows attackers to execute arbitrary SQL que
CVE-2026-40978 is a high-severity flaw (CVSS 8.8) affecting spring ai. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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)
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 73%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2026-04-28 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40978?
spring ai: upgrade to 1.0.6, 1.1.5. Exact commands for each OS are on this page.
Is CVE-2026-40978 being exploited?
CVE-2026-40978 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40978 affect?
CVE-2026-40978 affects spring ai. Severity is high (CVSS 8.8). 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)
How urgent is CVE-2026-40978?
Priority 38/100. High severity
Software pages
Related CVEs
- CVE-2026-40967 HIGH 8.6 UPGRADE In Spring AI, various FilterExpressionConverter implementations accept a filter expression object and translat
- CVE-2026-22743 HIGH 7.5 UPGRADE Spring AI's spring-ai-neo4j-store contains a Cypher injection vulnerability in Neo4jVectorFilterExpressionConv
- CVE-2026-22738 CRITICAL 9.8 UPGRADE In Spring AI, a SpEL injection vulnerability exists in SimpleVectorStore when a user-supplied value is used as
- CVE-2026-22742 HIGH 8.6 UPGRADE Spring AI's spring-ai-bedrock-converse contains a Server-Side Request Forgery (SSRF) vulnerability in BedrockP
- CVE-2026-22744 HIGH 7.5 UPGRADE In RedisFilterExpressionConverter of spring-ai-redis-store, when a user-controlled string is passed as a filte