CVE-2026-41712: Spring AI ChatMemory DEFAULT_CONVERSATION_ID Causes Unintended Cross-user Vulnerability
HIGHCVE-2026-41712 is a HIGH (CVSS 7.5) chatmemory default_conversation_id causes unintended cross-user vulnerability (CWE-276: Incorrect Default Permissions) affecting Spring AI libraries in the Maven ecosystem. The issue involves chatmemory default_conversation_id causes unintended cross-user data leakage. Remediation is available by upgrading affected packages to version 1.0.7, 1.1.6, 2.0.0-M6.
CVE-2026-41712 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-41712
To remediate this vulnerability, upgrade all affected Spring AI dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-client-chat</artifactId>
<version>1.0.7</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-client-chat</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-client-chat</artifactId>
<version>2.0.0-M6</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-model</artifactId>
<version>1.0.7</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-model</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-model</artifactId>
<version>2.0.0-M6</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-advisors-vector-store</artifactId>
<version>1.0.7</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-advisors-vector-store</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-advisors-vector-store</artifactId>
<version>2.0.0-M6</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.springframework.ai
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-41712, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.ai
Analyze the terminal output to locate any version of Spring AI in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.ai command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Spring AI, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-41712 Affected Spring AI Versions
9 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.ai:spring-ai-client-chat
|
Maven |
< 1.0.7
|
1.0.7
|
|
org.springframework.ai:spring-ai-client-chat
|
Maven |
≥ 1.1.0-M1
< 1.1.6
|
1.1.6
|
|
org.springframework.ai:spring-ai-client-chat
|
Maven |
≥ 2.0.0-M1
< 2.0.0-M6
|
2.0.0-M6
|
|
org.springframework.ai:spring-ai-model
|
Maven |
< 1.0.7
|
1.0.7
|
|
org.springframework.ai:spring-ai-model
|
Maven |
≥ 1.1.0-M1
< 1.1.6
|
1.1.6
|
|
org.springframework.ai:spring-ai-model
|
Maven |
≥ 2.0.0-M1
< 2.0.0-M6
|
2.0.0-M6
|
|
org.springframework.ai:spring-ai-advisors-vector-store
|
Maven |
< 1.0.7
|
1.0.7
|
|
org.springframework.ai:spring-ai-advisors-vector-store
|
Maven |
≥ 1.1.0-M1
< 1.1.6
|
1.1.6
|
|
org.springframework.ai:spring-ai-advisors-vector-store
|
Maven |
≥ 2.0.0-M1
< 2.0.0-M6
|
2.0.0-M6
|
References
Frequently Asked Questions
What is CVE-2026-41712?
Which Spring AI versions are affected?
What version fixes CVE-2026-41712?
Is spring-ai-client-chat affected?
Is spring-ai-model affected?
What is the CVSS score of CVE-2026-41712?
What CWE is associated with CVE-2026-41712?
How can I check Maven dependencies for CVE-2026-41712?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q62f-h9x2-gcqc",
"modified" : "2026-05-18T17:54:05Z",
"published" : "2026-05-12T12:32:16Z",
"aliases" : [ "CVE-2026-41712" ],
"summary" : "Spring AI: ChatMemory DEFAULT_CONVERSATION_ID causes unintended cross-user data leakage",
"details" : "Spring AI's chat memory component contained a problematic default that, when not explicitly overridden, could result in unintended data exposure between users.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-client-chat"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-client-chat"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0-M1"
}, {
"fixed" : "1.1.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-client-chat"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0-M1"
}, {
"fixed" : "2.0.0-M6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-model"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-model"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0-M1"
}, {
"fixed" : "1.1.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-model"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0-M1"
}, {
"fixed" : "2.0.0-M6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-advisors-vector-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-advisors-vector-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0-M1"
}, {
"fixed" : "1.1.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-advisors-vector-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0-M1"
}, {
"fixed" : "2.0.0-M6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41712"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-ai/commit/59ab7521f0a8f67c89359e910a20472d572b4dd9"
}, {
"type" : "WEB",
"url" : "https://spring.io/security/cve-2026-41712"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-18T17:54:05Z",
"nvd_published_at" : "2026-05-12T11:16:19Z"
}
}