# CVE-2026-40966: Spring AI improper access control in VectorStoreChatMemoryAdvisor

Source: https://junglewise.ai/threats/cve-2026-40966-spring-ai-improper-access-control-in-vectorstorechatmemoryadvisor  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-28. Updated: 2026-07-17  
License: CC BY 4.0 with a link back

CVE-2026-40966 · Severity: medium · CVSS 5.9 · Published 2026-04-28

Spring AI, a framework for building AI-powered applications, contains a vulnerability that could allow an attacker to view the private chat histories of other users. By providing a specially crafted conversation ID, an attacker can bypass security boundaries and access sensitive information, such as secrets or credentials, stored in the application's memory. This risk primarily affects multi-user applications that use the VectorStoreChatMemoryAdvisor component and allow users to specify their own conversation identifiers.

Technologies: [VMware Spring Ai](https://junglewise.ai/threats/technologies/spring-ai). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [Spring](https://junglewise.ai/threats/vendors/spring), [VMware](https://junglewise.ai/threats/vendors/vmware).

## Quick answers

**Is CVE-2026-40966 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-40966 being exploited in the wild.

**How severe is CVE-2026-40966?** Medium severity, with a CVSS score of 5.9, published 28 April 2026.

**Which products and versions are affected?** org.springframework.ai:spring-ai-advisors-vector-store (Maven) ECOSYSTEM:introduced=1.0.0,fixed=1.0.6; Spring AI Advisors Vector Store >= 1.0.0, < 1.0.6; >= 1.1.0, < 1.1.5.

**Is there a fix for CVE-2026-40966?** Yes. org.springframework.ai:spring-ai-advisors-vector-store (Maven): upgrade to 1.0.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-40966 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-40966?** Check whether you run org.springframework.ai:spring-ai-advisors-vector-store (Maven), Spring AI Advisors Vector Store or VMware Spring Ai at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.springframework.ai:spring-ai-advisors-vector-store (Maven): upgrade to 1.0.6 or later

  ```sh
  # set org.springframework.ai:spring-ai-advisors-vector-store to 1.0.6 in your pom.xml or build.gradle
  ```


## Technical details

A filter expression injection vulnerability exists in Spring AI's VectorStoreChatMemoryAdvisor. The root cause is the improper sanitization of the 'conversationId' parameter, which is concatenated into filter logic without adequate escaping. An attacker can exploit this by providing a malicious conversationId that alters the filter logic, bypassing intended isolation to query and exfiltrate chat records belonging to other users or tenants. This vulnerability requires the application to be configured to use VectorStoreChatMemoryAdvisor and to accept user-supplied input for the conversationId. Patches are available in versions 1.0.6 and 1.1.5.

## Affected products

- Spring spring-ai-advisors-vector-store >= 1.0.0, < 1.0.6; >= 1.1.0, < 1.1.5

## Identifiers

- CVE-2026-40966
- GHSA-v6x6-pjxw-3pv2

## Timeline

- 2026-04-28: disclosed
- 2026-04-28: advisory
- 2026-05-06: other: GitHub advisory reviewed

## References

- [https://api.github.com/users/Seol-JY](https://api.github.com/users/Seol-JY)
- [https://github.com/Seol-JY](https://github.com/Seol-JY)
- [https://api.github.com/users/Seol-JY/gists%7B/gist_id%7D](https://api.github.com/users/Seol-JY/gists%7B/gist_id%7D)
- [https://api.github.com/users/Seol-JY/repos](https://api.github.com/users/Seol-JY/repos)
- [https://avatars.githubusercontent.com/u/70826982?v=4](https://avatars.githubusercontent.com/u/70826982?v=4)
- [https://api.github.com/users/Seol-JY/events%7B/privacy%7D](https://api.github.com/users/Seol-JY/events%7B/privacy%7D)

## Related threats

- [Spring AI RedisChatMemoryRepository RediSearch injection in findByMetadata()](https://junglewise.ai/threats/cve-2026-59319-spring-ai-redischatmemoryrepository-redisearch-injection-in)
- [Spring AI path traversal in ResourceCacheService](https://junglewise.ai/threats/cve-2026-59294-spring-ai-path-traversal-in-resourcecacheservice)
- [Spring AI tool calling privilege escalation](https://junglewise.ai/threats/cve-2026-59318-spring-ai-tool-calling-privilege-escalation)
- [Spring AI Semantic Cache context hash isolation bypass](https://junglewise.ai/threats/cve-2026-59308-spring-ai-semantic-cache-context-hash-isolation-bypass)
- [Spring AI unbounded session accumulation denial of service](https://junglewise.ai/threats/cve-2026-59279-spring-ai-unbounded-session-accumulation-denial-of-service)
