Skip to content

Update lodash to 4.18.1 - #75

Merged
marcaaron merged 3 commits into
mainfrom
rocio-update-lodash
Nov 24, 2026
Merged

marcaaron merged 3 commits into
mainfrom
rocio-update-lodash

Conversation

@pecanoro

Copy link
Copy Markdown
Contributor

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 _.template imports key names) and a medium one (prototype pollution in _.unset, _.omit, and _.pullAt), each reported for package-lock.json and example/package-lock.json. 4.18.1 is older than the repo's min-release-age=7 window.

  • Root: release-it@15 pins lodash to exactly 4.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" } to package.json and regenerates the lockfile. lodash is dev-only here and does not ship in the library.
  • Example app: every dependent already accepts a ^4.x range, so this is a lockfile-only change (npm update lodash --package-lock-only).

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/707734

AI Tests

  • Ran npm ci in the root and in example/. npm ls lodash resolves only to 4.18.1 in both and exits cleanly.
  • Ran npm test, npm run lint, and npm run build in the root. All pass.
  • Ran npx release-it patch --dry-run --ci --no-npm --no-github.release to exercise release-it and the conventional-changelog tooling, which use lodash. It completes and generates the changelog.
  • Started the example web dev server (craco start). It compiles and the page loads with HTTP 200. It reports an ESLint "Plugin react was conflicted" error, and main reports the same error.
  • Did not run the example app on iOS or Android.

Tests

  1. In the repo root, run npm ci.
  2. Run npm ls lodash and confirm every entry is 4.18.1.
  3. Run npm test, npm run lint, and npm run build, and confirm they pass.
  4. In example/, run npm ci.
  5. Run npm ls lodash and confirm every entry is 4.18.1.
  6. Run npm run web.
  7. Confirm the dev server starts and the example page loads.

QA

NA

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@pecanoro

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

exfy-clabot Bot added a commit to Expensify/CLA that referenced this pull request Nov 24, 2026
@pecanoro
pecanoro requested a review from a team November 24, 2026 06:13
@expensify-chore-bot
expensify-chore-bot Bot requested review from marcaaron and removed request for a team November 24, 2026 06:13
@marcaaron

Copy link
Copy Markdown
Contributor

Conflicts

@pecanoro

Copy link
Copy Markdown
Contributor Author

@marcaaron Updated!

@marcaaron
marcaaron merged commit 406ed0a into main Nov 24, 2026
5 of 6 checks passed
@marcaaron
marcaaron deleted the rocio-update-lodash branch November 24, 2026 22:39
@os-botify

os-botify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 1.0.28 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants