lodash.template
4.18.1 · 1 Apr 2026MIT4M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 4.x4.18.1Safe from 4.18.0Latest line
- 3.x and older3.6.22 open advisories, worst high · last release Jun 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.template: 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 36 releases- 4.x · latest line
4.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.0.1 – 4.5.013 releases without a noteShow each
Dependency tracking
Know when your own dependencies move
lodash.template had 1 security advisory 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.
Registry facts last checked 16 Nov 2026. Releases and advisories last read 22 Nov 2026.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.