{"id":"CVE-2026-40978","published":"2026-04-28T07:18:53Z","modified":"2026-04-29T03:55:35Z","title":"SQL injection vulnerability in Spring AI's `CosmosDBVectorStore` allows attackers to execute arbitrary SQL queries via…","vendor":"Spring","product":"Spring AI","tier":"tail","description":{"text":"SQL injection vulnerability in Spring AI's `CosmosDBVectorStore` allows attackers to execute arbitrary SQL queries via crafted document IDs.\n\nAffected versions:\nSpring AI: 1.0.0 - 1.0.5 (fixed in 1.0.6), 1.1.0 - 1.1.4 (fixed in 1.1.5)","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00338,"percentile":0.27946,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://spring.io/security/cve-2026-40978","tags":[]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":5.59},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring AI","versions":[">= 1.0.0, < 1.0.6",">= 1.1.0, < 1.1.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-28T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.ai:spring-ai-azure-cosmos-db-store","vulnerableRanges":[">=1.0.0, <1.0.6",">=1.1.0, <1.1.5"],"patched":["1.0.6","1.1.5"],"from":["GHSA-63c8-m9m2-cvr3"],"provenance":"source"}],"summary":{"text":"The flaw is a SQL injection vulnerability in the CosmosDBVectorStore component of Spring AI, where crafted document IDs are passed into SQL queries without proper neutralisation. An attacker who can submit a crafted document ID to an affected deployment, with low-privilege authentication and no user interaction required, can execute arbitrary SQL queries against the backing Cosmos DB data store.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:43Z"},"euvd":{"id":"EUVD-2026-26011","exploited":false,"provenance":"source"}}