High
Security advisory
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)
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40978
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 00:32 UTC · Revision 1
Source evidence
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)
osv:CVE-2026-40978
Complete source record
{
"id": "fb7afe3516c4cc8a9a95474f607771d41705e2819103d01bd855be8319fdab3b",
"url": "https://osv.dev/vulnerability/CVE-2026-40978",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2026-40978",
"summary": "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)",
"evidence": "osv:CVE-2026-40978",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-40978",
"aliases": [
"CVE-2026-40978",
"GHSA-63c8-m9m2-cvr3"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/spring-projects/spring-ai",
"type": "GIT",
"events": [
{
"introduced": "fcd2803f36f35939c20ed152c9c1b0863fa35dcf"
},
{
"fixed": "057e111a93e61f911427a581207e853cf68085e9"
},
{
"introduced": "fa4c61eabeba0a69147b3c00a3b50380c1f25a75"
},
{
"fixed": "3d662709e1d5041efebf74753a6d119e5196952a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.0.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.1.0"
},
{
"fixed": "1.1.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40978.json"
}
}
],
"modified": "2026-10-28T02:30:52.222051211Z",
"provider": "osv",
"references": [
"https://spring.io/security/cve-2026-40978",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40978.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-40978"
],
"provider_metadata": {
"cwe_ids": [
"CWE-89"
],
"cna_assigner": "vmware",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.0.6"
},
{
"introduced": "1.1.0"
},
{
"fixed": "1.1.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40978.json"
}
},
"related_cves": [
{
"value": "CVE-2026-40978",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 520995,
"published_at": "2026-04-28T07:18:53.774+00:00"
}