@langchain/langgraph-checkpoint
1.2.3 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
1.2.3 is the newest release of 1.x.
In short
1 security
- Security
langgraph-checkpoint: Block prototype pollution in MemorySaver via reserved storage keys
Release note
Patch Changes
- Security
langgraph-checkpoint: Block prototype pollution in MemorySaver via reserved storage keys
MemorySaverpreviously embeddedthread_id,checkpoint_ns,checkpoint_id, andtask_iddirectly into property accesses on the
nested plain objectsthis.storageandthis.writes. A caller able to
shape any of those fields (every quickstart, tutorial, and test fixture
usesMemorySaverby default) could pass"__proto__","constructor", or"prototype"and have the subsequent assignment
mutateObject.prototype. From that point every plain object in the
process inherits the injected property, breakingfor...inloops,
truthy short-circuits, and downstream serializers across unrelated code
paths. CWE-1321.Adds an
assertSafeStorageKeychokepoint applied at every public entry
that touchesstorageorwrites(put,putWrites,deleteThread,getTuple,list). The guard rejects non-string values, the empty
string (unless explicitly opted-in forcheckpoint_ns), and the three
prototype-pollution keys. Behaviour for valid string identifiers is
unchanged.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.