CVE-2026-97869: langchain4j LangChain4j-agentic AgenticScopeJsonSerializationIT.java AgenticScopeSerializer.fromJson deserialization
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."
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
langchain4j LangChain4j-agenticto a version that resolves this vulnerability.Fixed in 1.5.3-beta11 - Upgrade
Upgrade
langchain4j LangChain4j-agenticto a version that resolves this vulnerability.Fixed in 1.11.10-beta19 - Upgrade
Upgrade
langchain4j LangChain4j-agenticto a version that resolves this vulnerability.Fixed in 1.18.1-beta28
Event History
Frequently Asked Questions
Is an application affected if it does not use AgenticScope persistence?
No. Exploitation requires AgenticScope persistence to be enabled, and that feature is opt-in.
What access does an attacker need to exploit this issue?
The attacker must already be able to write to the AgenticScope persistence store. Remote exploitation is possible only where that prerequisite is met.
Which versions address the issue?
Upgrade to 1.5.3-beta11, 1.11.10-beta19, or 1.18.1-beta28. The maintainer states that all maintained release lines have been patched.
What should teams do if they cannot upgrade immediately?
Disable AgenticScope persistence if it is not required, or restrict write access to its persistence store. The described exploitation path depends on both persistence being enabled and attacker-controlled writes to that store.