@langchain/langgraph is vulnerable to Insecure Deserialization
77
High Risk
LangGraph.js restores graph checkpoints with the default JsonPlusSerializer from @langchain/langgraph-checkpoint. In the lc: 2 reviver path that serializer performed dynamic method invocation, using property names and arguments taken from serialized data. Externally influenced checkpoint data could abuse inherited constructor references to reach Function and invoke arbitrary callables during restore. Patched LangGraph releases require a checkpoint version that reconstructs only a fixed allow-list 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 contain untrusted structured objects.
@langchain/langgraph is vulnerable to Insecure Deserialization in versions 0.1.1 - 0.4.9 and 1.0.0 - 1.4.11.
Upgrade the @langchain/langgraph 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