lodash
4.18.1 · 1 Apr 2026MIT203.6M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 4.x4.18.1Safe from 4.18.1Latest line
- 3.x and older3.10.153 open advisories, worst critical · last release Aug 2015, no longer updatedTo 4.18.1
What to use instead
A better maintained package
From the e18e module-replacements list, maintained by the community.
The list compares the options for lodash: read the comparison.
Before you switch
- 1
Check what else depends on it
Paste your package.json in the dependency check to see every deprecated or outdated package in one pass, not only this one.
- 2
Read the replacement's peers and releases
A native API or a few lines of code need no release notes, but check the Node version your project runs on.
- 3
Know when it ships
Follow the new package on inlinr: its releases and advisories land in your feed, and the time spent on the migration branch shows on its page.
Latest releases
All 113 releases4.18.1
1 Apr 2026lodash: 4.18.0-npm...4.18.1-npmlodash-es: 4.18.0-es...4.18.1-eslodash-amd: 4.18.0-amd...4.18.1-amd
Bugs
Fixes a
ReferenceErrorissue inlodashlodash-eslodash-amdandlodash.templatewhen using thetemplateandfromPairsfunctions from the modular builds. See #6167These defects were related to how lodash distributions are built from the main branch using github.com/lodash-archive/lodash-cli. When internal dependencies change inside lodash functions, equivalent updates need to be made to a mapping in the lodash-cli. (hey, it was ahead of its time once upon a time!). We know this, but we missed it in the last release. It's the kind of thing that passes in CI, but fails bc the build is not the same thing you tested.
There is no diff on main for this, but you can see the diffs for each of the npm packages on their respective branches:
lodash: 4.18.0-npm...4.18.1-npmlodash-es: 4.18.0-es...4.18.1-eslodash-amd: 4.18.0-amd...4.18.1-amdlodash.template4.18.0-npm-packages...4.18.1-npm-packages
4.18.0
31 Mar 2026Security
_.unset/_.omit: Fixed prototype pollution viaconstructor/prototypepath traversal (GHSA-f23m-r3pf-42rh, fe8d32e). Previously, array-wrapped path segments and primitive roots could bypass the existing guards, allowing deletion of properties from built-in prototypes. Nowconstructorandprototypeare blocked unconditionally as non-terminal path keys, matchingbaseSet. Calls that previously returnedtrueand deleted the property now returnfalseand leave the target untouched._.template: Fixed code injection viaimportskeys (GHSA-r5fr-rjxr-66jc, CVE-2026-4800, 879aaa9). Fixes an incomplete patch for CVE-2021-23337. Thevariableoption was validated againstreForbiddenIdentifierCharsbutimportsKeyswas left unguarded, allowing code injection via the sameFunction()constructor sink.importskeys containing forbidden identifier characters now throw"Invalid imports option passed into _.template".lodash.*modular packagesWe have also regenerated and published a select number of the
lodash.*modular packages.These modular packages had fallen out of sync significantly from the minor/patch updates to lodash. Specifically, we have brought the following packages up to parity w/ the latest lodash release because they have had CVEs on them in the past:
4.17.2 – 4.17.2318 releases without a noteShow each
- 4.17.2321 Jan 2026no note
- 4.17.2120 Feb 2021no note
- 4.17.2013 Aug 2020no note
- 4.17.198 Jul 2020no note
- 4.17.188 Jul 2020no note
- 4.17.178 Jul 2020no note
- 4.17.168 Jul 2020no note
- 4.17.1519 Jul 2019no note
- 4.17.1410 Jul 2019no note
- 4.17.139 Jul 2019no note
- 4.17.129 Jul 2019no note
- 4.17.1112 Sep 2018no note
- 4.17.1024 Apr 2018no note
- 4.17.924 Apr 2018no note
- 4.17.54 Feb 2018no note
- 4.17.431 Dec 2016no note
- 4.17.324 Dec 2016no note
- 4.17.216 Nov 2016no note
Dependency tracking · free for 3 projects
Know when your own dependencies move
lodash had 3 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 9 Nov 2026. Releases and advisories last read 9 Nov 2026.