Skip to main content

LangChain4j agentic EUVDEUVD-2026-87114

| CVE-2026-97869 LOW
Deserialization of Untrusted Data (CWE-502)
2026-09-25 VulDB GHSA-hg7f-vffm-ppc6
1.2
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain write access to AgenticScope persistence store
  2. Exploit
    Craft malicious JSON abusing Jackson default typing
  3. Execution
    Application deserializes via AgenticScopeSerializer.fromJson
  4. Impact
    Arbitrary class instantiation in JVM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires BOTH of the following, per the maintainer: (1) the application must have explicitly enabled AgenticScope persistence, which is opt-in and OFF by default; and (2) the attacker must already possess write access to the persistence store used by that feature. The root cause is Jackson deserialization with insecure default typing enabled in the LangChain4j-agentic module's AgenticScopeSerializer.fromJson path. Limiting factors: the opt-in non-default configuration, the requirement that the attacker already control the writable backing store (a significant pre-existing foothold), and high attack complexity (AC:H) with 'exploitability difficult' per the report. These preconditions substantially reduce realistic risk beyond the raw deserialization classification.

Impact

This is a genuinely low-priority issue despite the CWE-502 (deserialization) classification that superficially reads as dangerous. The vendor-supplied CVSS 4.0 vector (AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L) scores only 2.1, and every signal supports that: high attack complexity, high privileges required (PR:H), and only Low impact to confidentiality/integrity/availability. The maintainer explicitly states exploitation requires (1) an application to have opted into AgenticScope persistence and (2) an attacker who can ALREADY write to that persistence store - meaning the attacker must have effectively pre-compromised the trust boundary before the deserialization flaw adds any value. POC exploit code exists publicly (afish3201-debug GitHub writeup describing 'Insecure Jackson Default Typing Leads to Arbitrary Class Instantiation'), which raises awareness but the exploit is gated behind write access to the store. There is NO CISA KEV listing and no EPSS score provided; the E:P (Proof-of-Concept) exploit maturity in the vector is consistent with 'exploit published but not observed in the wild.' The signals are internally consistent - no conflict between network vector and the stated preconditions, because the 'network' reach is nullified by the requirement that the attacker already control the writable store. Bottom line: high-CVSS optics from the 'deserialization' label, but low real-world risk.

Exploit ScenarioDerived

In an application that has explicitly enabled the opt-in AgenticScope persistence feature, an attacker who already has write access to the backing store poisons a stored AgenticScope JSON blob to abuse Jackson's insecure default typing. When the application later deserializes it via AgenticScopeSerializer.fromJson, arbitrary class instantiation occurs. Public POC exploit code exists, but the attack requires pre-existing write access to the persistence store and the non-default persistence feature, so it is difficult to execute (AC:H).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 25, 2026

Deserialization of untrusted data in the LangChain4j-agentic module's AgenticScopeSerializer.fromJson path allows an attacker who can already write to an AgenticScope persistence store to trigger arbitrary class instantiation through Jackson's insecure default typing. Affected versions are the 1.5.3, 1.11.10 and 1.18.1 beta lines up to and including 1.5.3-beta10, 1.11.10-beta18 and 1.18.1-beta27, with fixes released in 1.5.3-beta11, 1.11.10-beta19 and 1.18.1-beta28 under advisory GHSA-gmwr-7wmf-mrjm. Publicly available exploit code exists, but effective risk is low: exploitation requires that the application have explicitly enabled AgenticScope persistence (opt-in and off by default) and that the attacker already control the writable backing store, with attack complexity rated high; this issue is not confirmed actively exploited (not in CISA KEV), and EPSS-style scoring is negligible given the reported CVSS base of 2.1.

RemediationAI

Vendor-released patch: upgrade to langchain4j 1.18.1-beta28 (or the corresponding 1.18.1 release), 1.11.10-beta19, or 1.5.3-beta11 depending on your maintenance line; the fix is documented in GHSA-gmwr-7wmf-mrjm at https://github.com/langchain4j/langchain4j/security/advisories/GHSA-gmwr-7wmf-mrjm and the release tag https://github.com/langchain4j/langchain4j/releases/tag/1.18.1. Because exploitation requires both opt-in AgenticScope persistence and prior write access to its backing store, the most effective compensating control is to leave AgenticScope persistence disabled (its default state) if the feature is not needed - the trade-off being loss of scope persistence and any stateful agentic-scope workflows that depend on it. If persistence must stay on, treat the persistence store as a trusted, non-shared boundary: restrict write access to the store to the application's own service identity only, block or remove any external writers, and place a strict type allowlist (Jackson PolymorphicTypeValidator) in front of deserialization - the trade-off being that legitimate scope payloads referencing non-allowlisted types will fail to deserialize and require allowlist maintenance. Note also that the release notes for 1.18.1 list only version-bump changes, so validate the fix against the beta28 artifacts or the advisory rather than assuming the tagged 1.18.1 line alone is sufficient.

Affected VersionsENISA

langchain4j 1.11.10-beta18
langchain4j 1.5.3-beta10
langchain4j 1.18.1-beta27

Affected Packages

euvd langchain4j no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a classic CWE-502 insecure deserialization issue rooted in Jackson's default typing feature being enabled insecurely inside the LangChain4j-agentic component. When AgenticScopeSerializer.fromJson processes serialized agentic scope state, Jackson's polymorphic type handling can be induced to instantiate attacker-nominated classes rather than restricting types to an expected allowlist, which is the 'insecure Jackson default typing leads to arbitrary class instantiation' pattern described in the public write-up. The trigger surface is the test-named AgenticScopeJsonSerializationIT / AgenticScopeSerializer code path, and the affected artifact per CPE is langchain4j (cpe:2.3:a:n/a:langchain4j) across the beta lines enumerated by EUVD. The mitigating architecture is that this code path is only reachable when the application has turned on AgenticScope persistence, a non-default opt-in setting, and the malicious payload must already reside in the persistence store the application reads from, meaning the attacker must first obtain a write foothold on that store. Both the CVSS 4.0 vector (AC:H, PR:H, E:P) and the independent assessment (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L) agree on high complexity, high privileges required, and only limited confidentiality, integrity and availability impact with no scope change.

Know when Langchain4J gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 1.2 LOW
CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 4.1 MEDIUM

Attacker must already have write access to the opt-in persistence store, so PR:H and AC:H; arbitrary class instantiation yields limited (Low) C/I/A impact absent a confirmed RCE gadget chain.

3.1 AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Sep 25, 2026 - 16:37 NVD
2.1 (LOW) 1.2 (LOW)
CVE Published
Sep 25, 2026 - 15:15 cve.org
LOW 2.1

DescriptionCVE.org

A flaw has been found in langchain4j up to 1.5.3-beta10/1.11.10-beta18/1.18.1-beta27. This vulnerability affects the function AgenticScopeSerializer.fromJson of the file AgenticScopeJsonSerializationIT.java of the component LangChain4j-agentic. This manipulation causes deserialization. Remote exploitation of the attack is possible. The attack's complexity is rated as high. It is stated that the exploitability is difficult. The exploit has been published and may be used. Upgrading to version 1.5.3-beta11, 1.11.10-beta19 and 1.18.1-beta28 is able to resolve this issue. Upgrading the affected component is advised. The project maintainer kindly explains: "The issue was reported to us privately on 23 July 2026 and fixed in releases published on 29 July 2026. It is tracked as GHSA-gmwr-7wmf-mrjm. Exploitation requires an application to have enabled AgenticScope persistence, which is opt-in, and an attacker who can already write to that store. All maintained release lines have been patched."

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
LangChain4j is a growing Java LLM library; the agentic persistence feature is niche and opt-in
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy