CVE-2026-97869: Deserialization in langchain4j
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."
AI Analysis
Technical Summary
This vulnerability involves unsafe deserialization in the AgenticScopeSerializer.fromJson function of langchain4j's LangChain4j-agentic component. It allows remote attackers to exploit deserialization if the application has enabled AgenticScope persistence and if the attacker can write to that persistence store. The flaw affects specific beta versions up to 1.5.3-beta10, 1.11.10-beta18, and 1.18.1-beta27. The vulnerability was reported privately and fixed promptly in releases dated 29 July 2026. Exploitation complexity is high, requiring specific conditions, and no known exploits are currently in the wild.
Potential Impact
The vulnerability could allow remote attackers to perform unsafe deserialization, potentially leading to limited compromise of the affected application. However, exploitation requires the application to have enabled an opt-in feature (AgenticScope persistence) and for the attacker to have write access to the persistence store, significantly limiting the attack surface. The CVSS score of 2.1 reflects a low severity impact with high attack complexity and required privileges.
Mitigation Recommendations
Upgrade langchain4j to versions 1.5.3-beta11, 1.11.10-beta19, or 1.18.1-beta28 or later, as these releases contain the official fix for this vulnerability. Ensure that AgenticScope persistence is only enabled when necessary and restrict write access to the persistence store to trusted entities. No additional mitigation is required beyond applying the official patches and following these configuration recommendations.
CVE-2026-97869: Deserialization in langchain4j
Description
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."
CVSS v4.0
Score 2.1low
Affected software
langchain4j
pkg:maven/io.github.langchain4j/langchain4j-agenticcpe:2.3:a:langchain4j:langchain4j:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves unsafe deserialization in the AgenticScopeSerializer.fromJson function of langchain4j's LangChain4j-agentic component. It allows remote attackers to exploit deserialization if the application has enabled AgenticScope persistence and if the attacker can write to that persistence store. The flaw affects specific beta versions up to 1.5.3-beta10, 1.11.10-beta18, and 1.18.1-beta27. The vulnerability was reported privately and fixed promptly in releases dated 29 July 2026. Exploitation complexity is high, requiring specific conditions, and no known exploits are currently in the wild.
Potential Impact
The vulnerability could allow remote attackers to perform unsafe deserialization, potentially leading to limited compromise of the affected application. However, exploitation requires the application to have enabled an opt-in feature (AgenticScope persistence) and for the attacker to have write access to the persistence store, significantly limiting the attack surface. The CVSS score of 2.1 reflects a low severity impact with high attack complexity and required privileges.
Mitigation Recommendations
Upgrade langchain4j to versions 1.5.3-beta11, 1.11.10-beta19, or 1.18.1-beta28 or later, as these releases contain the official fix for this vulnerability. Ensure that AgenticScope persistence is only enabled when necessary and restrict write access to the persistence store to trusted entities. No additional mitigation is required beyond applying the official patches and following these configuration recommendations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulDB
- Date Reserved
- 2026-09-25T08:26:45.370Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab697d1f7a7c54106f62dce
Added to database: 09/25/2026, 15:48:33 UTC
Last enriched: 09/25/2026, 16:02:59 UTC
Last updated: 09/26/2026, 02:49:35 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.