Lodash.merge 2.0.0 introduces several internal dependency updates compared to its predecessor, enhancing its stability and potentially impacting performance characteristics for developers. While the provided data lacks specifics about the prior stable version, we can infer improvements based on the updated dependencies. The module now relies on newer versions of lodash._basecreatecallback, lodash._basemerge, lodash._getarray, lodash.isobject, and lodash._releasearray, all locked at the "~2.0.0" version. This suggests a consolidation of internal lodash utilities aiming for better consistency and addressing potential bugs or security vulnerabilities present in older versions of those dependencies.
Developers utilizing lodash.merge should be aware of these subtle changes, especially if they directly relied on the behavior of the underlying lodash utilities. While the core merging functionality likely remains similar, the upgraded dependencies could introduce minor behavioral differences or optimizations. Upgrading to 2.0.0 and thoroughly testing the application’s merge operations is recommended to ensure seamless integration and to leverage any performance improvements offered by the updated lodash internals. The MIT license ensures it is a dependency that is ok to put in any kind of project, private, public, ecc. Being a function generated by lodash-cli, users can expect it to be an atomic operation, specific and well defined.
All the vulnerabilities related to the version 2.0.0 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.