Skip to content

CVE-2026-121938: langchain4j-aideepin Character IDOR & AI Prompt Exfiltration

Density:
C-Level Executive Briefing CVE-2026-121938 HIGH SCORE 86/100

A high-severity authorization vulnerability (CVE-2026-121938) was cataloged in langchain4j-aideepin prior to 3.31.0, an enterprise framework powering autonomous agents and personas. The CharacterService.detail function fails to verify whether the requesting user owns the requested character profile. Authenticated attackers enumerating UUIDs via GET /character/{uuid} can extract confidential system prompts, fine-tuned agent instructions, embedded API keys, and multi-tenant conversational histories.

HYBRID

HERMES THREAT SCORE & AGENTIC CONTEXT EXPOSURE EVALUATION

Target: langchain4j-aideepin CharacterService.detail (< 3.31.0)
Confidence: 97%
86 / 100
HIGH

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 18 / 20
Weaponization 20 / 20
Exposure 18 / 20
Prevalence 17 / 20
Impact 18 / 20
Exploit Maturity 19 / 20
Attack Chain Potential 18 / 20

In multi-tenant AI deployments, langchain4j-aideepin allows organizations to define specialized agent personas with unique voice settings, system instructions, and tool integrations. The endpoint GET /character/{uuid} maps directly to:

/* Vulnerable logic prior to version 3.31.0 */
public CharacterVO detail(String uuid) {
// Missing user ownership check: queries directly by UUID alone!
Character character = characterMapper.selectByUuid(uuid);
return convertToVO(character);
}

Because character records store foundational system prompts, safety guardrail overrides, and tool API keys, any authenticated tenant querying foreign UUIDs obtains the full proprietary definition of competing agents, facilitating prompt extraction and jailbreaking attacks (AAP-001 / AAP-002).

  1. Apply Upgrade: Update langchain4j-aideepin to version 3.31.0 or higher, which enforces tenant ownership filters WHERE uuid = ? AND user_id = ?.
  2. Rotate Exposed Secrets: Invalidate all API keys and LLM service tokens embedded within configured character tools.
  3. Audit Access Logs: Inspect HTTP request logs for sequential or anomalous GET /character/* enumeration patterns.
๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-121938: langchain4j-aideepin Character IDOR & AI Prompt ExfiltrationVULNERABILITY

Connected Nodes: 3
Active Relationships (Outgoing)
→ affectsPRODUCTLangChain & LangGraph Framework
98% VERY_HIGH

Multi-agent coordination framework and cyclic state graph orchestration engine for tool-calling agents.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in LangGraph Multi-Agent Runtime documented in Hermes dossier.”

Supporting Verified Evidence:
→ exploitsAGENTIC ATTACK_PATTERNAAP-001: Direct System Prompt Override
92% VERY_HIGH

Adversary injects explicit formatting tags or role-inversion prompts directly into user input to strip system instructions and escape developer-enforced guardrails.

๐Ÿ” Why is this related? (Evidence & Provenance)

“CVE-2026-121938 weaponizes the agentic attack pattern formalized under AAP-001.”

Supporting Verified Evidence:
→ exploitsAGENTIC ATTACK_PATTERNAAP-002: Indirect Context Injection
92% VERY_HIGH

Adversary embeds covert payload instructions into retrieved external data (web pages, repositories, emails) that subvert model planning when parsed by autonomous agents.

๐Ÿ” Why is this related? (Evidence & Provenance)

“CVE-2026-121938 weaponizes the agentic attack pattern formalized under AAP-002.”

Supporting Verified Evidence: