Deserialization of Untrusted Data Affecting py3-langchain package, versions <1.3.4-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.41% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-PY3LANGCHAIN-17137400
  • published3 Jun 2026
  • disclosed26 May 2026

Introduced: 26 May 2026

CVE-2026-44843  (opens in a new tab)
CWE-502  (opens in a new tab)

How to fix?

Upgrade Wolfi py3-langchain to version 1.3.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-langchain package and not the py3-langchain package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

LangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.85 and 1.3.3, LangChain contains older runtime code paths that deserialize run inputs, run outputs, or other application-controlled payloads using overly broad object allowlists. These paths may call load() with allowed_objects="all". This does not enable arbitrary Python object deserialization, but it does allow any trusted LangChain-serializable object to be revived, which is broader than these runtime paths require. As a result, attacker-supplied LangChain serialized constructor dictionaries may cause trusted runtime paths to instantiate classes with untrusted constructor arguments. This vulnerability is fixed in 0.3.85 and 1.3.3.