CVE-2026-40966
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn Spring AI, an attacker can bypass conversation isolation and exfiltrate sensitive memory from other users’ chat histories, including secrets and credentials, by injecting filter logic through conversationId. Only applications that use VectorStoreChatMemoryAdvisor and pass user-supplied input as a conversationId are affected.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceThis is an input validation vulnerability in Spring AI's VectorStoreChatMemoryAdvisor where user-supplied conversationId values are not properly sanitized, allowing attackers to inject filter logic that bypasses conversation isolation. This enables unauthorized access to other users' chat histories and exfiltration of sensitive data including secrets and credentials.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 1.0.0, < 1.0.6>= 1.1.0, < 1.1.5CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed Spring AI versionLocate the spring-ai-core or spring-ai dependency in your build configuration (pom.xml, build.gradle, or equivalent) and note the exact version numberAffected if Version is >= 1.0.0 and < 1.0.6, or >= 1.1.0 and < 1.1.5
-
Verify VectorStoreChatMemoryAdvisor is in useSearch your codebase for imports or references to org.springframework.ai.chat.memory.advisor.VectorStoreChatMemoryAdvisor or usage of VectorStoreChatMemoryAdvisor in your chat configurationAffected if This advisor class is being used in your application
-
Inspect conversationId parameter handlingReview the code that accepts or processes the conversationId parameter in your chat memory implementation; check if the value is passed directly to VectorStoreChatMemoryAdvisor without sanitizationAffected if User-supplied conversationId values are accepted and used without validation or sanitization
-
Check for input validation on conversationIdSearch for any input validation, allowlist, or sanitization logic applied to the conversationId parameter before it is used in filter or query operationsAffected if No input validation exists on conversationId, or validation can be bypassed by injected filter syntax
Your environment is affected if you are running a vulnerable Spring AI version AND using VectorStoreChatMemoryAdvisor with user-supplied conversationId values that lack strict input validation.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.0.61.1.5
Implement strict input validation on the conversationId parameter to reject any injected filter logic, and use system-generated conversation identifiers instead of allowing user-supplied values to ensure proper session isolation.
Spring AI 1.0.6 or 1.1.5 (or later)
- Identify all Spring AI applications that use VectorStoreChatMemoryAdvisor
- Audit code to determine if user-supplied input is being passed directly as the conversationId parameter
- If user-supplied conversationId is used, temporarily implement server-side validation to only allow alphanumeric IDs or UUIDs
- Upgrade Spring AI dependency to version 1.0.6 or later for the 1.0.x line, or 1.1.5 or later for the 1.1.x line
- After upgrade, verify conversation isolation by testing that one user's conversationId cannot access another user's chat history
- If using Maven, update the spring-ai-core dependency version; if using Gradle, update the spring-ai-core plugin version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40966 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40966 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data