@langchain/langgraph-checkpoint is vulnerable to Insecure Deserialization
77
High Risk
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.
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.
@langchain/langgraph-checkpoint is vulnerable to Insecure Deserialization in versions 0.0.1 - 0.1.2 and 1.0.0 - 1.1.3.
Upgrade the @langchain/langgraph-checkpoint library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant