Skip to content

chore(deps): update dependency lodash to v4.18.1 [security]#892

Merged
renovate[bot] merged 1 commit intomasterfrom
renovate/npm-lodash-vulnerability
Apr 10, 2026
Merged

chore(deps): update dependency lodash to v4.18.1 [security]#892
renovate[bot] merged 1 commit intomasterfrom
renovate/npm-lodash-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Apr 10, 2026

This PR contains the following updates:

Package Change Age Confidence
lodash (source) 4.17.234.18.1 age confidence

GitHub Vulnerability Alerts

CVE-2026-4800

Impact

The fix for CVE-2021-23337 added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink.

When an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time.

Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function().

Patches

Users should upgrade to version 4.18.0.

The fix applies two changes:

  1. Validate importsKeys against the existing reForbiddenIdentifierChars regex (same check already used for the variable option)
  2. Replace assignInWith with assignWith when merging imports, so only own properties are enumerated

Workarounds

Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.

CVE-2026-2950

Impact

Lodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the _.unset and _.omit functions. The fix for CVE-2025-13465 only guards against string key members, so an attacker can bypass the check by passing array-wrapped path segments. This allows deletion of properties from built-in prototypes such as Object.prototype, Number.prototype, and String.prototype.

The issue permits deletion of prototype properties but does not allow overwriting their original behavior.

Patches

This issue is patched in 4.18.0.

Workarounds

None. Upgrade to the patched version.


Release Notes

lodash/lodash (lodash)

v4.18.1

Compare Source

Bugs

Fixes a ReferenceError issue in lodash lodash-es lodash-amd and lodash.template when using the template and fromPairs functions from the modular builds. See #​6167 (comment)

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.templatelodash/lodash@4.18.0-npm-packages...4.18.1-npm-packages

v4.18.0

Compare Source

v4.18.0

Full Changelog: lodash/lodash@4.17.23...4.18.0

Security

_.unset / _.omit: 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 constructor and prototype are blocked unconditionally as non-terminal path keys, matching baseSet. Calls that previously returned true and deleted the property now return false and leave the target untouched.

_.template: Fixed code injection via imports keys (GHSA-r5fr-rjxr-66jc, CVE-2026-4800, 879aaa9). Fixes an incomplete patch for CVE-2021-23337. The variable option was validated against reForbiddenIdentifierChars but importsKeys was left unguarded, allowing code injection via the same Function() constructor sink. imports keys containing forbidden identifier characters now throw "Invalid imports option passed into _.template".

Docs
  • Add security notice for _.template in threat model and API docs (#​6099)
  • Document lower > upper behavior in _.random (#​6115)
  • Fix quotes in _.compact jsdoc (#​6090)
lodash.* modular packages

Diff

We 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:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the 'security' label Apr 10, 2026
@renovate renovate bot force-pushed the renovate/npm-lodash-vulnerability branch from 7c3452e to 9fd5040 Compare April 10, 2026 11:48
@renovate renovate bot merged commit e77d43c into master Apr 10, 2026
4 checks passed
@renovate renovate bot deleted the renovate/npm-lodash-vulnerability branch April 10, 2026 13:02
jmrenouard pushed a commit to jmrenouard/MySQLTuner-perl that referenced this pull request Apr 13, 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
jmrenouard added a commit to jmrenouard/MySQLTuner-perl that referenced this pull request Apr 17, 2026
# Release Notes - v2.8.41

**Date**: 2026-04-13

## 📝 Executive Summary

```text
2.8.41 2026-04-13

- chore: automated project maintenance and cleanup (extracted `RULES.md`, `MEMORY_DB.md`, `TESTS.md`).
- feat: implement idiomatic Perl Boolean practices across the project (#34).
- feat: add recommendation for `table_open_cache_instances` based on CPU cores (major#480).
- feat: improve syslog and systemd journal detection for error logs (major#440).
- feat: initialize `$mysqllogin` to avoid uninitialized value warnings (major#490).
- fix: Restore compatibility with older Perl versions (by @jasongill).
- fix: wrap template loading in `get_template_model()` to avoid `uninitialized value` warnings during `require`.
- fix: allow `--updateversion` to work on hosts without `mysql`/`mariadb` installed (#36).
- fix: skip local SSL certificate warnings if they are in an inaccessible `datadir` (#33).
- fix: correct false positives in `check_removed_innodb_variables` by distinguishing real server variables from internal ones (#32).
- fix: improve join_buffer_size recommendation formatting in Variables to Adjust (major#881).
- fix: suppress MySQL client warning regarding 'DISABLED' boolean value for SSL (major#887).
- fix: correctly handle `--defaults-file` and `--defaults-extra-file` without dropping options (major#605).
- fix: restore Debian maintenance account automatic login by using idiomatic boolean checks (major#896).
- fix: include `tmp_table_size` in per-thread memory calculation for better accuracy (major#864).
- fix: add retry mechanism for initial `SELECT VERSION()` query to improve connection resilience (major#782).
- fix: prevent `AUTO_INCREMENT` capacity false positives for empty tables (#37).
- fix: refactor InnoDB Redo Log Capacity logic to be workload-based and avoid false positives (major#714, major#737, major#777).
- fix: add guards against division by zero in calculations for improved stability (major#435).
- fix: add truthiness guards to `mysql_innodb` and `mysql_stats` subroutines.
- fix: improve `which` logic for better container/minimal environment support.
- fix: enhance login failure reporting with detailed output.
- ci: enhance Quality Gate to strictly enforce zero-warning policy on GitHub Actions tests.
- ci: implement dynamic CI test environment detection by wrapping configuration extraction.
- ci: refactor GitHub Actions release and prerelease workflows to support dynamic versions and checksum generation.
- ci: migrate maintenance script to GitHub Actions.
- refactor: update CLI metadata to use `undef` as default for string/path options.
- refactor: replace non-idiomatic `eq '0'`, `ne 0`, etc., with standard truthiness checks.
- refactor: replace "master"/"slave" terminology with "source"/"replica" for cultural sensitivity (major#888).
- chore(deps): update docker/setup-buildx-action action to v4.
- chore(deps): update docker/build-push-action action to v7.
- chore(deps): update docker/login-action action to v4.
- chore(deps): update softprops/action-gh-release action to v3.
```

## 📈 Diagnostic Growth Indicators

| Metric | Current | Progress | Status |
| :--- | :--- | :--- | :--- |
| Total Indicators | 12 | 0 | 🛡️ |
| Efficiency Checks | 0 | 0 | 🛡️ |
| Risk Detections | 2 | 0 | 🛡️ |
| Information Points | 10 | 0 | 🛡️ |

## 🛠️ Internal Commit History

- feat: release 2.8.41 (2a8371c)
- style: tidy mysqltuner.pl (db23439)
- ci: refactor Github release definitions with pre-releases and deliverables support (68f8d12)
- ci: enforce zero-warning policy and dynamic test env (2eebcc4)
- feat: release 2.8.41 final stabilization (e479ba7)
- feat: release 2.8.41 final polish (e8d2751)
- feat: release 2.8.41 final polish (bac36cb)
- feat: release 2.8.41 (56b9dd7)
- Merge pull request #41 from major/master (089a598)
- Merge pull request major#885 from major/renovate/docker-setup-buildx-action-4.x (d430513)
- Merge pull request major#886 from major/renovate/docker-build-push-action-7.x (9b7dd14)
- Merge pull request major#884 from major/renovate/docker-login-action-4.x (5d56ecb)
- Merge pull request major#894 from major/renovate/softprops-action-gh-release-3.x (9805873)
- Merge pull request major#882 from jasongill/master (d1f3808)
- Merge pull request major#895 from jmrenouard/master (2feb466)
- Merge pull request #40 from major/master (10fcd37)
- Merge branch 'master' into master (c13bb0b)
- feat: release 2.8.40 (21d5873)
- perltidy mysqltuner.pl (5653056)
- chore(deps): update all non-major dependencies to v20.5.0 (major#893) (290b646)
- chore(deps): update dependency lodash to v4.18.1 [security] (major#892) (c01e968)
- chore: add automerge to Renovate config (633edcc)
- Add CodeQL analysis workflow configuration (43a57c9)
- Merge pull request #35 from C0RD/master (9474c70)
- chore(deps): update all non-major dependencies to v20.5.0 (major#893) (4520d11)
- chore(deps): update softprops/action-gh-release action to v3 (75e9cee)
- chore(deps): update dependency lodash to v4.18.1 [security] (major#892) (e77d43c)
- chore: add automerge to Renovate config (0470fb7)
- Merge pull request #38 from jmrenouard/dependabot/npm_and_yarn/npm_and_yarn-b22b4dc46b (69caecf)
- Merge pull request #39 from major/master (54dbffd)
- chore(deps-dev): bump the npm_and_yarn group across 1 directory with 2 updates (955284a)
- chore(deps): update docker/build-push-action action to v7 (a5a6234)
- chore(deps): update docker/setup-buildx-action action to v4 (830bbc2)
- chore(deps): update docker/login-action action to v4 (2ca8b8d)
- Change default update check to disabled (938db61)
- Remove r modifier from regex for compatability with older Perl versions (d6f7f97)
- chore: bump version to 2.8.41 (3e54167)
- Merge pull request major#879 from jmrenouard/master (9b8617f)

## ⚙️ Technical Evolutions

*Internal logic hardening (no interface or diagnostic changes).*

## ✅ Laboratory Verification Results

- [x] Automated TDD suite passed.
- [x] Multi-DB version laboratory execution validated.
- [x] Performance indicator delta analysis completed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants