Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
1.2

CVE-2026-97869: langchain4j allows remote code execution via data deserialization

CVE-2026-97869 · published 24 days ago
Summary

The langchain4j library versions up to 1.5.3-beta10, 1.11.10-beta18, and 1.18.1-beta27 can turn specially crafted data into executable code when a specific feature is turned on. An attacker who can write to the library's storage could run code on your system remotely. Update to version 1.5.3-beta11, 1.11.10-beta19, or 1.18.1-beta28 to close the risk.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
– langchain4j 1.5.3-beta10
Original advisory text
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."
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
1.2 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-502Deserialization of Untrusted Data
CWE-20Improper Input Validation
Timeline
Published25 Sep 2026
Updated19 Oct 2026
First seen25 Sep 2026
Sources
CVE-2026-97869 · MITRE
Track software like this
Free during beta