npm / lodash
lodash
What changed in lodash 4, from its official release notes, upgrade guides and advisories. Also covers lodash-es. Sources checked 2026-11-30.
3 breaking2 security5 new APIs and options2 performance1 behavior and defaults11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initlodash 424 changes
Breaking changes 3
Rejects imports keys containing forbidden identifier characters, preventing code injection through the Function constructor sink.
Blocks constructor and prototype path traversal, returning false and leaving the target untouched instead of deleting built-in prototype properties.
Module paths are simplified; bindAll can be required directly from lodash/bindAll.
Security 2
lodash vulnerable to prototype pollution via array-path bypass in
_.unset,_.omit, and `_.pullAtBlocks constructor and prototype path traversal, preventing deletion of properties from built-in prototypes.
New APIs and options 5
Lodash adds support for cloning and comparing array buffers, maps, sets, and symbols.
The Lodash wrapper supports iterables.
Iterators can be converted to arrays.
The FP build is pulled into core, providing immutable, auto-curried, iteratee-first, data-last methods.
The FP convert module can be required to convert methods.
Performance 2
Core functionality for detecting circular references is made faster.
Support for lazy evaluation is expanded.
Behavior and default changes 1
Lodash adds emoji support, including astral symbols, modifiers, variation selectors, zero-width joiners, and regional indicator symbols.
Fixes and other changes 11
Fixed a ReferenceError when using fromPairs from modular builds.
Fixed a ReferenceError when using template from modular builds.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.
The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.