Lodash.merge version 2.2.1 represents a minor patch release over its immediate predecessor, version 2.2.0, focusing primarily on internal dependency updates rather than introducing new features or API changes. Both versions serve as standalone modules providing the _.merge function from the larger Lodash library, enabling developers to selectively include just the merge functionality in their projects, contributing to smaller bundle sizes. Key dependencies like lodash._basecreatecallback, lodash._basemerge, lodash._getarray, lodash.isobject, and lodash._releasearray see corresponding version bumps to ~2.2.1 from ~2.2.0, suggesting bug fixes or performance enhancements within these underlying utilities.
For developers already using lodash.merge, upgrading from 2.2.0 to 2.2.1 would likely be a straightforward process with minimal risk of breaking changes, assuming they adhere to semantic versioning principles. The primary benefit of upgrading would be incorporating any bug fixes or performance improvements present in the updated internal dependencies. Developers considering using lodash.merge for the first time can choose either version, as the core merging functionality remains consistent. However, selecting the latest version (2.2.1) is generally recommended to leverage the most recent refinements and potentially more stable internal workings. The module, authored by John-David Dalton and licensed under MIT, is readily available through npm and hosted on GitHub, ensuring easy integration into Node.js projects.
All the vulnerabilities related to the version 2.2.1 of the package
Prototype Pollution in lodash.merge
Versions of lodash.merge
before 4.6.1 are vulnerable to Prototype Pollution. The function 'merge' may allow a malicious user to modify the prototype of Object
via __proto__
causing the addition or modification of an existing property that will exist on all objects.
Update to version 4.6.1 or later.
Prototype Pollution in lodash.merge
Versions of lodash.merge
before 4.6.2 are vulnerable to prototype pollution. The function merge
may allow a malicious user to modify the prototype of Object
via {constructor: {prototype: {...}}}
causing the addition or modification of an existing property that will exist on all objects.
Update to version 4.6.2 or later.