acoustic-carpenter-78188
04/02/2026, 8:05 AM4.18.1
Bugs
Fixes aissue inReferenceErrorlodashlodash-esandlodash-amdwhen using thelodash.templateandtemplatefunctions from the modular builds. See lodash/lodash#6167fromPairs
These defects were related to how lodash distributions are built from the main branch using https://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`: lodash/lodash@4.18.0-npm...4.18.1-npm
• `lodash-es`: lodash/lodash@4.18.0-es...4.18.1-es
• `lodash-amd`: lodash/lodash@4.18.0-amd...4.18.1-amd
• `lodash.template`lodash/lodash@4.18.0-npm-packages...4.18.1-npm-packages
4.18.0
v4.18.0
Full Changelog: lodash/lodash@4.17.23...4.18.0
Security
/_.unset: Fixed prototype pollution via `constructor`/`prototype` path 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. Now_.omitandconstructorare blocked unconditionally as non-terminal path keys, matchingprototype. Calls that previously returnedbaseSetand deleted the property now returntrueand leave the target untouched.false
: Fixed code injection via_.templatekeys (GHSA-r5fr-rjxr-66jc, CVE-2026-4800, 879aaa9). Fixes an incomplete patch for CVE-2021-23337. Theimportsoption was validated againstvariablebutreForbiddenIdentifierCharswas left unguarded, allowing code injection via the sameimportsKeysconstructor sink.Function()keys containing forbidden identifier characters now throwimports."Invalid imports option passed into _.template"
Docs
• Add security notice forin threat model and API docs (#6099)_.template
• Documentbehavior inlower > upper(#6115)_.random
• Fix quotes injsdoc (#6090)_.compact
modular packageslodash.
Diff
We have also regenerated and published a select number of themodular packages.lodash.*
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:
• lodash.orderby
• lodash.tonumber
• lodash.trim
• lodash.trimend
• lodash.sortedindexby
• lodash.zipobjectdeep
• lodash.unset
• lodash.omit
• lodash.templateCommits •
cb0b9b9 release(patch): bump main to 4.18.1 (#6177)
• 75535f5 chore: prune stale advisory refs (#6170)
• 62e91bc docs: remove n_ Node.js < 6 REPL note from README (#6165)
• 59be2de release(minor): bump to 4.18.0 (#6161)
• af63457 fix: broken tests for _.template 879aaa9
• 1073a76 fix: linting issues
• 879aaa9 fix: validate imports keys in _.template
• fe8d32e fix: block prototype pollution in baseUnset via constructor/prototype traversal
• 18ba0a3 refactor(fromPairs): use baseAssignValue for consistent assignment (#6153)
• b819080 ci: add dist sync validation workflow (#6137)
• Additional commits viewable in compare view
flyteorg/flyteconsole