---
id: CVE-2026-97869
title: >-
  A flaw has been found in langchain4j up to
  1.5.3-beta10/1.11.10-beta18/1.18.1-beta27
summary: >-
  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-a…
severity: medium
cvss: 4.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-20
  - CWE-502
product: langchain4j
affected:
  - langchain4j 1.5.3-beta10
  - langchain4j 1.11.10-beta18
  - langchain4j 1.18.1-beta27
published: '2026-09-25'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T17:17:21.300'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-97869'
references:
  - url: >-
      https://github.com/afish3201-debug/CVE/blob/main/Insecure%20Jackson%20Default%20Typing%20Leads%20to%20Arbitrary%20Class%20Instantiation%20in%20LangChain4j%20Agentic%20Module.md
    label: cna@vuldb.com
  - url: 'https://github.com/langchain4j/langchain4j/'
    label: cna@vuldb.com
  - url: 'https://github.com/langchain4j/langchain4j/releases/tag/1.18.1'
    label: cna@vuldb.com
  - url: >-
      https://github.com/langchain4j/langchain4j/security/advisories/GHSA-gmwr-7wmf-mrjm
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-97869'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/911825'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/409886'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/409886/cti'
    label: cna@vuldb.com
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-25T16:37:00.836381Z'
ingestedAt: '2026-09-25T16:12:08.732Z'
---

## Overview

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."

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
