Skip to content

Bump lodash from 4.17.23 to 4.18.1 - #3519

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/lodash-4.18.1
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/lodash-4.18.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 3, 2026 •

Copy link
Copy Markdown
Contributor

Bumps lodash from 4.17.23 to 4.18.1.

Release notes

Sourced from lodash's releases.

4.18.1

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 lodash/lodash#6167

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:

4.18.0

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:

Commits
  • 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

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 3, 2026
@morningman

Copy link
Copy Markdown
Contributor

@dependabot rebase

@morningman morningman closed this Oct 23, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@morningman morningman reopened this Oct 23, 2026
morningman pushed a commit to morningman/doris-website that referenced this pull request Oct 23, 2026
Replaces apache#3519, whose April-era head no longer builds against the current
Build Check workflow. lodash 4.18.1 fixes GHSA-r5fr-rjxr-66jc (high,
_.template code injection) and GHSA-f23m-r3pf-42rh (medium, prototype
pollution via _.unset/_.omit).

Co-Authored-By: Claude Code <noreply@anthropic.com>
@morningman

Copy link
Copy Markdown
Contributor

Closing in favor of #4478. The PR head is from April and the current Build Check workflow checks out the PR head, which no longer contains scripts/i18n/check-configuration.cjs; a rebase would be required. #4478 carries lodash 4.18.1 on top of current master, together with postcss, follow-redirects and shell-quote.

@morningman morningman closed this Oct 23, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/lodash-4.18.1 branch October 23, 2026 07:13
@dependabot @github

dependabot Bot commented on behalf of github Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Oh no! Something went wrong on our end. Please try again later.

If the problem persists, please contact GitHub support for assistance 🙇

morningman added a commit that referenced this pull request Oct 23, 2026
…4478)

Supersedes #3572, #3552 and #3519.

- **postcss** 8.5.3 → 8.5.31. #3572 stopped at 8.5.10, which only fixes
GHSA-qx2v-qp2m-jg93; the high arbitrary file read (GHSA-6g55-p6wh-862q),
path traversal (GHSA-r28c-9q8g-f849) and the incomplete fix
(GHSA-fxqj-rqcc-2cmp) require 8.5.12 / 8.5.18 / 8.5.23. 8.5.31 is the
current 8.x release.
- **follow-redirects** 1.15.9 → 1.16.1. #3552 targeted 1.16.0, which
fixes GHSA-r4q5-vmmm-2653 but introduces two high advisories fixed only
in 1.16.1 (CVE-2026-111755, CVE-2026-111756).
- **shell-quote** 1.8.2 → 1.12.0 for the `react-dev-utils` path. #4418
updated launch-editor's copy to 1.12.0 but left the `react-dev-utils`
copy at 1.8.2; this consolidates both ranges on 1.12.0
(GHSA-w7jw-789q-3m8p, GHSA-395f-4hp3-45gv).
- **lodash** 4.17.23 → 4.18.1. #3519 has an April-era head that no
longer works with the current Build Check workflow (the job checks out
the PR head and now expects `scripts/i18n/check-configuration.cjs`).
4.18.1 fixes GHSA-r5fr-rjxr-66jc (high, `_.template` code injection) and
GHSA-f23m-r3pf-42rh (medium, prototype pollution via
`_.unset`/`_.omit`).
- **nanoid** 3.3.8 → 3.3.20, required by postcss 8.5.31.

The change is lockfile-only; `package.json` is unchanged.

Validation:
- `yarn install --frozen-lockfile --ignore-scripts` passes on top of
current master.
- `yarn audit` reports no advisories for postcss, follow-redirects,
shell-quote, lodash or nanoid.
- Only `yarn.lock` is changed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: morningman <morningman@apache.org>
Co-authored-by: Claude Code <noreply@anthropic.com>

This branch was previously deployed

1 inactive deployment
Production — ac4b276e Deployed Apr 3, 2026 by dependabot[bot] via Build Check #7323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant