Intel

AIKIDO-2026-866673

@langchain/langgraph-checkpoint is vulnerable to Insecure Deserialization

Insecure DeserializationGHSA-j87f-x5h5-gr75 Published Yesterday

77

High Risk

This Affects:

JS@langchain/langgraph-checkpoint
0.0.1 - 0.1.2
Fixed in 0.1.3
1.0.0 - 1.1.3
Fixed in 1.1.4
Are you affected? Scan for Free

TL;DR

The default JsonPlusSerializer in the checkpoint library reconstructs objects from stored checkpoint JSON when a checkpoint is restored. In the lc: 2 reviver path it performed dynamic method invocation, using property names and arguments taken directly from serialized data. Externally influenced checkpoint data could abuse inherited constructor references to reach Function and invoke arbitrary callables. The fix removes the dynamic property lookup and method invocation and reconstructs only a fixed allowlist of safe types with strict validation of constructor identifiers and argument shapes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application restores checkpoint data that can be influenced by untrusted input.

Background info

@langchain/langgraph-checkpoint is vulnerable to Insecure Deserialization in versions 0.0.1 - 0.1.2 and 1.0.0 - 1.1.3.

How to fix this

Upgrade the @langchain/langgraph-checkpoint library to the patch version.