Upgrade lodash to 4.17.23 and @types/lodash to 4.17.23#5603
Merged
iclanton merged 1 commit intomicrosoft:mainfrom Feb 6, 2026
Merged
Upgrade lodash to 4.17.23 and @types/lodash to 4.17.23#5603iclanton merged 1 commit intomicrosoft:mainfrom
iclanton merged 1 commit intomicrosoft:mainfrom
Conversation
iclanton
reviewed
Feb 5, 2026
common/changes/@microsoft/api-extractor/lodash-upgrade_2026-02-05-00-00.json
Outdated
Show resolved
Hide resolved
iclanton
reviewed
Feb 5, 2026
common/changes/@rushstack/npm-check-fork/lodash-upgrade_2026-02-05-00-00.json
Outdated
Show resolved
Hide resolved
iclanton
approved these changes
Feb 5, 2026
73bf58e to
3d3c97b
Compare
- Update lodash from ~4.17.15 to ~4.17.23 in: - @microsoft/api-extractor - @rushstack/heft-jest-plugin - @rushstack/npm-check-fork - localization-plugin-test-02 - Update @types/lodash from 4.14.116 to 4.17.23 in the same packages - Fix type error in npm-check-fork caused by stricter @types/lodash: Replace _.partial(semver.gt, CRAZY_HIGH_SEMVER) with arrow function for better type safety and compatibility - Add test coverage for CRAZY_HIGH_SEMVER version filtering
3d3c97b to
9506f25
Compare
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.
Summary
Upgrades
lodashfrom~4.17.15to~4.17.23and@types/lodashfrom4.14.116to4.17.23across all packages in the monorepo that depend on it.This addresses the security vulnerability GHSA-xxjr-mmjv-4gpg (Command Injection in lodash).
Fixes #5560
Details
Packages updated:
@microsoft/api-extractor@rushstack/heft-jest-plugin@rushstack/npm-check-forklocalization-plugin-test-02(private test package)Code changes:
@rushstack/npm-check-fork, the stricter type definitions in@types/lodash@4.17.23exposed a type incompatibility with_.partial(semver.gt, CRAZY_HIGH_SEMVER). This was replaced with an equivalent arrow function(version: string) => semver.gt(CRAZY_HIGH_SEMVER, version)which is more explicit and type-safe.Compatibility:
_.partialto arrow function change is functionally equivalentHow it was tested
rush buildfor all affected packages - all builds passrush testfor affected packages - all tests passnpm-check-forkto verify theCRAZY_HIGH_SEMVERfiltering logic works correctly with the refactored codeImpacted documentation
None - this is a dependency update with no API changes.