Same results. No CVE.

@stackline/deepmerge

A drop-in replacement for deepmerge 4. Swap one dependency, keep every result, and lose CVE-2026-93753 and circular-reference crashes. Hardening, Map and Set merging, and array strategies are one option away.

npm install deepmerge@npm:@stackline/deepmerge

v1.1.2 Node 14.17+ TypeScript 3.9-7.0 0 dependencies

Runs the production bundle

Merge playground

Key policy
Rejected keys

Target

JSON

Source

JSON

Result


            
Ready 0.000 ms Object.prototype unchanged Result prototypes clean

Lowest-change adoption

Keep existing imports

Install through an npm alias and code that imports deepmerge keeps working, with the same results.

npm uninstall deepmerge
npm install deepmerge@npm:@stackline/deepmerge
import merge from 'deepmerge';

const config = merge(defaults, environment);

deepmerge 4.3.1 is the latest upstream release

What the swap fixes

Compatibility contract
Inputdeepmerge 4.3.1@stackline/deepmerge
__proto__ merged into a null-prototype object or a null placeholderThe result inherits attacker data (CVE-2026-93753)Key dropped at every depth
Circular referencesStack overflowCycle reproduced in the result
Frozen options objectTypeErrorMerges normally
React 19 elementsProps of two elements merged togetherKept intact
Everything elseIdentical results: values, key order, prototypes, and copies

Public contract

deepmerge 4 API, plus opt-in tools

Full reference
Export or optionPurposeDefault
merge(target, source, options?)Immutable recursive mergedeepmerge 4 results
merge.all(objects, options?)Merge a list from left to rightdeepmerge 4 results
strict(target, source, options?)Strict keys, throw on rejection, depth and key limitsSeparate export
createDeepmerge(defaults)Reusable merge with preset optionsSeparate export
overwriteArrays, mergeArraysByIndex, mergeArraysByKey(key), concatUniqueArraysReady-made arrayMerge strategiesConcatenate
isPlainMergeableObjectKeep class instances and built-ins intactTraverse every object
mergeCollectionsMerge Map entries and union Set valuesfalse
skipUndefinedundefined does not replace target valuesfalse
customMergeScope: 'all'customMerge also handles primitive values'objects'
unsafeKeys, onUnsafeKey, maxDepth, maxKeysHardening for untrusted inputDrop __proto__, no limits
UnsafeKeyError, DeepMergeLimitErrorStructured rejection errorsNamed and static export

Release evidence

Compatibility is tested, not implied

Every upstream issue, pull request, and fork is tracked in the upstream review.

900,000
full-graph comparisons against deepmerge 4.3.1 without a difference
115
assertions from deepmerge's own test suite, passing
3.9-7.0
TypeScript compatibility matrix
0
runtime dependencies