An insecure direct object reference (IDOR) vulnerability in the langchain4j-aideepin AI application platform allowed authenticated users to read other users’ private AI conversation data through version 3.32.0.
Quick Take
- What: CVE-2026-125386, an IDOR vulnerability in CharacterMessageController that exposes other users’ AI data
- Who is affected: Deployments of langchain4j-aideepin through version 3.32.0
- What to do: Upgrade to a version containing commit 483499b or later; no fixed version number is stated in the public sources
- Severity: Medium (CVSS 5.3 per NVD, CVSS 6.0 per VulnCheck)
- Status: Patch committed on November 9, 2026
In plain English
Langchain4j-aideepin is an open-source platform for building AI applications with chat, knowledge bases, and workflows. A security flaw let any logged-in user read another user’s private AI conversation data (knowledge base chunks, long-term memory notes, and knowledge graph information) if they knew that user’s message ID. The maintainer fixed the problem by adding owner checks to the database queries.
What you should do: If you run this platform, you should update to the latest code from GitHub. If you only use AI chat services as an end user, this does not affect you.
What happened
Researcher hieuPenguinnn reported the vulnerability in GitHub issue #118 on November 4, 2026. Three REST API endpoints in CharacterMessageController passed a message UUID directly to database queries without verifying that the requesting user owned the message:
GET /character/message/knowledge-embedding-ref/{uuid}GET /character/message/memory-embedding-ref/{msgUuid}GET /character/message/graph-ref/{uuid}
The underlying MyBatis mappers (CharacterMessageRefEmbeddingMapper.xml, CharacterMessageRefMemoryEmbeddingMapper.xml, and CharacterMessageRefGraphMapper.xml) joined tables on where b.uuid = #{uuid} with no user_id condition. An attacker who obtained another user’s message UUID could retrieve that user’s knowledge-base text, long-term memory metadata, and knowledge-graph vertices and edges.
The issue was a follow-up to a similar IDOR vulnerability (issue #116) that affected the character message list endpoint. That earlier flaw was fixed in pull request #117, which noted that other conversation endpoints required separate review.
What you should do
The maintainer committed a fix (483499b) on November 9, 2026, that adds a userId parameter to the three mapper methods and scopes the SQL queries to ThreadContext.getCurrentUserId(). The sources do not state a fixed version number. Administrators running langchain4j-aideepin should pull the latest code from the main branch or any release published after November 9, 2026.
The vulnerability requires an attacker to be authenticated and to know a victim’s message UUID, which is not sequential. No evidence of active exploitation is mentioned in the public sources.
What it means
Insecure direct object reference vulnerabilities remain common in AI application platforms that store per-user conversation history and retrieval-augmented generation (RAG) data. This incident underscores the need for consistent authorization checks at every API endpoint that accesses user-scoped resources, even when the resource identifier is a non-guessable UUID. The langchain4j-aideepin project fixed the flaw within five days of the report.



