Repository navigation
Update lodash to 4.18.1 - #75
Merged
Merged
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
expensify-chore-bot
Bot
requested review from
marcaaron
and removed request for
a team
November 24, 2026 06:13
Contributor
|
Conflicts |
Contributor
Author
|
@marcaaron Updated! |
marcaaron
approved these changes
Nov 24, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Updates lodash from 4.17.21 to 4.18.1 in both lockfiles. This closes the four open Dependabot alerts: a high-severity one (code injection via
_.templateimports key names) and a medium one (prototype pollution in_.unset,_.omit, and_.pullAt), each reported forpackage-lock.jsonandexample/package-lock.json. 4.18.1 is older than the repo'smin-release-age=7window.release-it@15pins lodash to exactly4.17.21(still true in the latest 15.x), so a lockfile update alone leaves a vulnerable nested copy. This adds"overrides": { "lodash": "^4.18.1" }topackage.jsonand regenerates the lockfile. lodash is dev-only here and does not ship in the library.^4.xrange, so this is a lockfile-only change (npm update lodash --package-lock-only).Fixed Issues
$ https://github.com/Expensify/Expensify/issues/707734
AI Tests
npm ciin the root and inexample/.npm ls lodashresolves only to 4.18.1 in both and exits cleanly.npm test,npm run lint, andnpm run buildin the root. All pass.npx release-it patch --dry-run --ci --no-npm --no-github.releaseto exercise release-it and the conventional-changelog tooling, which use lodash. It completes and generates the changelog.craco start). It compiles and the page loads with HTTP 200. It reports an ESLint "Plugin react was conflicted" error, andmainreports the same error.Tests
npm ci.npm ls lodashand confirm every entry is 4.18.1.npm test,npm run lint, andnpm run build, and confirm they pass.example/, runnpm ci.npm ls lodashand confirm every entry is 4.18.1.npm run web.QA
NA