# CVE-2026-40978: Spring AI has SQL Injection in CosmosDBVectorStore.doDelete()

- Severity: High 8.8 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-02)
- Published: 2026-04-28T07:18:53.774Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-63c8-m9m2-cvr3
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: vmware

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

(As written by CVE List.)

## Affected

- Spring Spring AI: from 1.0.0 before 1.0.6; from 1.1.0 before 1.1.5
- org.springframework.ai:spring-ai-azure-cosmos-db-store (Maven): from 1.0.0 before 1.0.6; from 1.1.0 before 1.1.5
- vmware spring_ai: from 1.0.0 before 1.0.6; from 1.1.0 before 1.1.5

## Every score

- vmware: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://spring.io/security/cve-2026-40978> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40978> (advisory)
- <https://github.com/spring-projects/spring-ai> (package)

## Sources

- CVE List: [CVE-2026-40978](https://www.cve.org/CVERecord?id=CVE-2026-40978), CVE Terms of Use, modified 2026-04-29
- GitHub Advisory Database: [GHSA-63c8-m9m2-cvr3](https://github.com/advisories/GHSA-63c8-m9m2-cvr3), CC-BY-4.0, modified 2026-05-06
- NVD: [CVE-2026-40978](https://nvd.nist.gov/vuln/detail/CVE-2026-40978), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40978 · Whole record: https://cve.day/CVE-2026-40978.json · Rebuilt by cve.day 2026-11-25T22:59:19.874Z
