Skip to content

[Snyk] Security upgrade lodash from 4.17.23 to 4.18.1#11061

Open
revan-zhang wants to merge 1 commit intoxfrom
snyk-fix-d7cab41b18de8156e5923989bfbcc2b6
Open

[Snyk] Security upgrade lodash from 4.17.23 to 4.18.1#11061
revan-zhang wants to merge 1 commit intoxfrom
snyk-fix-d7cab41b18de8156e5923989bfbcc2b6

Conversation

@revan-zhang
Copy link
Copy Markdown
Contributor

@revan-zhang revan-zhang commented Apr 4, 2026

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • packages/components/package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Arbitrary Code Injection
SNYK-JS-LODASH-15869625
  630  
medium severity Prototype Pollution
SNYK-JS-LODASH-15869619
  545  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Prototype Pollution
🦉 Arbitrary Code Injection


Open with Devin

@revan-zhang
Copy link
Copy Markdown
Contributor Author

revan-zhang commented Apr 4, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 444b0ba461

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"ethereum-blockies-base64": "^1.0.2",
"iso-639-1": "^2.1.13",
"lodash": "^4.17.23",
"lodash": "^4.18.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Sync lockfile after raising lodash version range

Changing @onekeyhq/components to "lodash": "^4.18.1" without a matching yarn.lock update leaves the repo in an inconsistent state: yarn.lock still only contains lodash@npm:^4.17.23 (around yarn.lock:35198), and CI jobs I checked (for example .github/workflows/lint.yml:54) run yarn install --immutable, which fails when manifests and lockfile diverge. This will block standard CI/install flows until the lockfile (and zero-install cache if required) is regenerated and committed.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

"ethereum-blockies-base64": "^1.0.2",
"iso-639-1": "^2.1.13",
"lodash": "^4.17.23",
"lodash": "^4.18.1",
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.

🔴 yarn.lock not updated for new lodash version, breaking all CI workflows

The package.json was updated to require lodash@^4.18.1, but yarn.lock still only has resolutions for lodash@^4.17.23 (resolving to 4.17.23). Since there is no lockfile entry matching ^4.18.1, every CI workflow that runs yarn install --immutable (confirmed in over 20 workflows in .github/workflows/) will fail because Yarn Berry requires the lockfile to be up-to-date when --immutable is used. The lockfile must be regenerated by running yarn install locally and committing the updated yarn.lock.

Prompt for agents
The yarn.lock file was not updated to match the new lodash dependency version. The lockfile still has a resolution for ^4.17.23 -> 4.17.23 but no resolution for ^4.18.1. Since all CI workflows use yarn install --immutable, this will cause every CI build to fail.

To fix: run yarn install locally to regenerate the lockfile, then commit the updated yarn.lock alongside the package.json change. The old lodash@npm:^4.17.23 entry in yarn.lock should be replaced with a lodash@npm:^4.18.1 entry resolving to 4.18.1.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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