WaratekVRT Sign in

CVE-2026-40978 Spring AI

Affected softwareSpring AI
Severity8.8 High CVSS 3.1
Fixed in1.0.6, 1.1.5
WeaknessSQL injection (CWE-89)
Published28 Apr 2026
Updated26 Oct 2026

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)

Exploitation status

No public exploit

No exploit has been reported in the sources we check.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.34% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR sql-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-89: SQL Injection.

How to mitigate CVE-2026-40978

Upgrade Spring AI to a release that fixes it: 1.0.6 or 1.1.5. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.springframework.ai:spring-ai-azure-cosmos-db-store 1.0.0 1.0.6 unbounded
org.springframework.ai:spring-ai-azure-cosmos-db-store 1.1.0 1.1.5 unbounded

Products and versions

2 products, 4 version entries
SourceVendorProductSchemeAffected versions
osv org.springframework.ai spring-ai-azure-cosmos-db-store generic ≥ 1.0.0 and < 1.0.6 · ≥ 1.1.0 and < 1.1.5
nvd vmware spring ai generic ≥ 1.0.0 and < 1.0.6 · ≥ 1.1.0 and < 1.1.5

References

URLTags
https://github.com/spring-projects/spring-ai PACKAGE
https://spring.io/security/cve-2026-40978 WEB

Timeline

Published2026-04-28By the CVE Program.
NVD record modified2026-10-26NVD's own last-modified date for this record.