CVE-2026-40978
Received Received - Intake
SQL Injection in Spring AI CosmosDBVectorStore Enables Arbitrary Queries

Publication date: 2026-04-28

Last updated on: 2026-04-29

Assigner: 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)
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-28
Last Modified
2026-04-29
Generated
2026-05-06
AI Q&A
2026-04-28
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
vmware spring_ai From 1.0.0 (inc) to 1.0.6 (exc)
vmware spring_ai From 1.1.0 (inc) to 1.1.5 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The SQL injection vulnerability in Spring AI's CosmosDBVectorStore allows attackers to execute arbitrary SQL queries, potentially leading to unauthorized access, modification, or deletion of sensitive data.

Such unauthorized access and data compromise can negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of data confidentiality, integrity, and availability.

Failure to address this vulnerability could result in breaches of personal or protected health information, leading to regulatory penalties and loss of trust.

Mitigation involves upgrading to fixed versions (1.0.6 or 1.1.5) to prevent exploitation and maintain compliance.


Can you explain this vulnerability to me?

CVE-2026-40978 is a high-severity SQL injection vulnerability found in the doDelete() method of the CosmosDBVectorStore class within Spring AI.

This flaw allows attackers to execute arbitrary SQL queries by supplying specially crafted document IDs.

The vulnerability affects applications using CosmosDBVectorStore that pass user-controlled input as document IDs without proper sanitization or validation.


How can this vulnerability impact me? :

An attacker exploiting this vulnerability can execute arbitrary SQL queries on the affected system.

This can lead to severe impacts on confidentiality, integrity, and availability of the system.

Because the attack vector is network-based with low complexity and requires low privileges and no user interaction, it is relatively easy for attackers to exploit.


What immediate steps should I take to mitigate this vulnerability?

To mitigate the SQL injection vulnerability in Spring AI's CosmosDBVectorStore, you should upgrade to the fixed versions of the software.

  • Upgrade to version 1.0.6 if you are using the 1.0.x branch.
  • Upgrade to version 1.1.5 if you are using the 1.1.x branch.

No additional mitigation steps are required beyond upgrading.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart