Skip to content

deps(dm/ui): bump lodash and lodash-es to 4.18.1 - #12969

Open
GMHDBJD wants to merge 2 commits into
pingcap:masterfrom
GMHDBJD:security/dm-ui-lodash-bump
Open

GMHDBJD wants to merge 2 commits into
pingcap:masterfrom
GMHDBJD:security/dm-ui-lodash-bump

Conversation

@GMHDBJD

@GMHDBJD GMHDBJD commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #12968

dm/ui/yarn.lock pinned lodash@4.17.21 and lodash-es@4.17.21, which are affected by:

lodash-es is a direct dependency of the UI and is affected by the same advisories.

What is changed and how it works?

  • Add yarn resolutions pinning lodash and lodash-es to 4.18.1 so all transitive users get the fixed version.
  • Bump the direct lodash-es dependency to ^4.18.1.
  • Regenerate yarn.lock for the two packages.

No application code, API or runtime behavior changes.

Check List

Tests

  • yarn --ignore-scripts + yarn type-check / yarn lint (CI DM Web UI Lint)
  • yarn list --pattern lodash resolves both packages to 4.18.1

Questions

Will it cause performance regression or break compatibility?

No. Both packages stay on the 4.x line and are drop-in replacements; only the vulnerable transitive versions change.

Do you need to update user documentation, design documentation or monitoring documentation?

No.

Release note

None

Summary by CodeRabbit

  • Chores
    • Updated internal package version settings. This maintenance change does not add or remove user-facing features, alter the interface, or change app behavior. No action is needed to access existing functionality.

Fix the open Dependabot alerts for the bundled web UI:

- CVE-2026-4800 / GHSA-r5fr-rjxr-66jc (high): code injection via
  `_.template` imports key names, fixed in 4.18.0.
- CVE-2025-13465 / GHSA-xxjr-mmjv-4gpg (medium): prototype pollution in
  `_.unset`, `_.omit` and `_.pullAt`, fixed in 4.17.23.

Pin both packages through yarn resolutions so all transitive users get
4.18.1.
@GMHDBJD GMHDBJD added release-note-none Denotes a PR that doesn't merit a release note. dependencies Pull requests that update a dependency file area/dm Issues or PRs related to DM. labels Nov 10, 2026
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files ignored due to path filters: 1

  • dm/ui/yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4731b59-c233-499a-ab31-885fac80453a
Commits

Reviewing files that changed from the base of the PR and between dba0692 and 1f2a3b7.

Files ignored due to path filters: 1

  • dm/ui/yarn.lock is excluded by !**/yarn.lock, !**/*.lock

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The DM UI package manifest adds Yarn resolutions for lodash and lodash-es at version 4.18.1. It also updates the lodash-es dependency range to ^4.18.1.

Changes: DM UI dependencies

Layer / File(s) Summary
Update lodash versions
dm/ui/package.json
The package manifest pins lodash and lodash-es to 4.18.1 through Yarn resolutions. The lodash-es dependency range changes to ^4.18.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other · Severity of issue fixed: High

Suggested labels: dependencies, area/dm, release-note-none

Suggested reviewers: joechenrh

Merge Risk: Minimal · previous review dba06

The dependency pins are consistent with the inspected lockfile entries. No merge-blocking issue was found.

Pre-merge checks: Passed 3 · Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Direct issue #12968 asks for dependency versions without the reported vulnerabilities and suggests Yarn resolutions plus a lockfile update. The reviewed dm/ui/package.json summary shows resolutions … Provide reviewable evidence of the dm/ui/yarn.lock changes and resolved lodash and lodash-es versions.
Out of Scope Changes check Inconclusive The visible dm/ui/package.json changes align with issue #12968. The excluded dm/ui/yarn.lock is not represented in the summary, so its complete changes cannot be assessed for unrelated content. Provide reviewable evidence of the dm/ui/yarn.lock diff to determine whether it contains only changes related to issue #12968.
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title clearly summarizes the dependency updates and version pinning for lodash and lodash-es.
Description check Passed The description explains the problem, changes, tests, compatibility impact, documentation needs, and release note. It includes a linked issue number and identifies the dependency versions to use.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Linked Issues check

Explanation

Direct issue #12968 asks for dependency versions without the reported vulnerabilities and suggests Yarn resolutions plus a lockfile update. The reviewed dm/ui/package.json summary shows resolutions for lodash and lodash-es at 4.18.1 and a lodash-es range update to ^4.18.1. The required lockfile is dm/ui/yarn.lock, which is excluded from review, so its update and resolved versions cannot be verified.

Resolution

Provide reviewable evidence of the dm/ui/yarn.lock changes and resolved lodash and lodash-es versions.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the versions in a row
Two lodash pins now match the newer flow
The manifest records each update neat
The UI hops along on steady feet
Then nibbles clover, pleased to see it grow

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d1d410b3-5700-4d9d-9e3f-3468226055a8
Commits

Reviewing files that changed from the base of the PR and between 7d0375a and dba0692.

Files ignored due to path filters: 1

  • dm/ui/yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing: 1

  • dm/ui/package.json

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@ti-chi-bot ti-chi-bot Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-cherry-pick-release-nextgen-202603 Should cherry pick this PR to release-nextgen-202603 branch. needs-cherry-pick-release-nextgen-202609 Should cherry pick this PR to release-nextgen-202609 branch. and removed do-not-merge/needs-triage-completed labels Nov 10, 2026
@ti-chi-bot ti-chi-bot Bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Nov 19, 2026
@ti-chi-bot

ti-chi-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, joechenrh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 19, 2026
@ti-chi-bot

ti-chi-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

[LGTM Timeline notifier]

Timeline:

  • 2026-11-19 05:38:08.081837764 +0000 UTC m=+1941012.706988038: ☑️ agreed by joechenrh.
  • 2026-11-19 05:48:06.332252038 +0000 UTC m=+1941610.957402318: ☑️ agreed by D3Hunter.

@wuhuizuo

Copy link
Copy Markdown
Contributor

/test pull-check

@wuhuizuo wuhuizuo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recheck protected-changes

@ti-chi-bot ti-chi-bot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting a fresh protected-changes evaluation for this head commit. No code changes.

@ti-chi-bot

ti-chi-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

@GMHDBJD: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-dm-integration-test 1f2a3b7 link true /test pull-dm-integration-test

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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

Labels

approved area/dm Issues or PRs related to DM. dependencies Pull requests that update a dependency file lgtm needs-cherry-pick-release-nextgen-202603 Should cherry pick this PR to release-nextgen-202603 branch. needs-cherry-pick-release-nextgen-202609 Should cherry pick this PR to release-nextgen-202609 branch. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dm/ui: lodash and lodash-es are vulnerable to code injection and prototype pollution

5 participants