Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.ai/spring-ai-azure-cosmos-db-store
  4. ›
  5. CVE-2026-40978

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

April 28, 2026 (updated May 6, 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).

References

  • github.com/advisories/GHSA-63c8-m9m2-cvr3
  • github.com/spring-projects/spring-ai
  • nvd.nist.gov/vuln/detail/CVE-2026-40978
  • spring.io/security/cve-2026-40978

Code Behaviors & Features

Detect and mitigate CVE-2026-40978 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 1.0.6, all versions starting from 1.1.0 before 1.1.5

Fixed versions

  • 1.0.6
  • 1.1.5

Solution

Upgrade to versions 1.0.6, 1.1.5 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

maven/org.springframework.ai/spring-ai-azure-cosmos-db-store/CVE-2026-40978.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:24 +0000.