Skip to content

[Snyk] Fix for 4 vulnerabilities#470

Open
revan-zhang wants to merge 1 commit into
masterfrom
snyk-fix-53a5601f50e6df4c2d835f3d4a971a90
Open

[Snyk] Fix for 4 vulnerabilities#470
revan-zhang wants to merge 1 commit into
masterfrom
snyk-fix-53a5601f50e6df4c2d835f3d4a971a90

Conversation

@revan-zhang

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

Copy link
Copy Markdown
Contributor

snyk-top-banner

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

Snyk changed the following file(s):

  • packages/providers/onekey-alph-provider/package.json
  • packages/providers/onekey-alph-provider/yarn.lock

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.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Infinite loop
SNYK-JS-BNJS-15274301
  720  
critical severity Improper Verification of Cryptographic Signature
SNYK-JS-STABLELIBED25519-15914262
  655  
medium severity Use of a Cryptographic Primitive with a Risky Implementation
SNYK-JS-ELLIPTIC-14908844
  540  
medium severity Insufficient Visual Distinction of Homoglyphs Presented to User
SNYK-JS-BASEX-10118294
  495  

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.


Open with Devin

@revan-zhang

revan-zhang commented Apr 16, 2026

Copy link
Copy Markdown
Contributor Author

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.

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

Copy link
Copy Markdown

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 2 additional findings in Devin Review.

Open in Devin Review

Comment on lines +32 to +33
"@alephium/walletconnect-provider": "^3.0.0",
"@alephium/web3": "^3.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Stale version-specific patch file will fail to apply after @alephium/web3 upgrade to v3.x

The package.json upgrades @alephium/web3 from ^1.5.2 to ^3.0.0, but the existing patch file patches/@alephium+web3+1.5.2.patch is version-pinned to 1.5.2. Since patch-package matches patches by package name and version, this patch will not be applied to the newly installed v3.x package. The postinstall script (packages/providers/onekey-alph-provider/package.json:25) runs patch-package, which will either error out (failing the install) or warn that the patch doesn't match—depending on config. The patch made two important changes: (1) commenting out the global BigInt.prototype['toJSON'] override in @alephium/web3's index.js, and (2) modifying the minified bundle. If the v3.x package still has these issues, the provider will break at runtime; if it doesn't, the stale patch file should be removed to avoid install failures.

Prompt for agents
The patch file at packages/providers/onekey-alph-provider/patches/@alephium+web3+1.5.2.patch is pinned to version 1.5.2 of @alephium/web3. After upgrading to ^3.0.0, patch-package will not find a matching patch. You need to either:

1. If the issues the patch fixed (BigInt.prototype.toJSON override and minified bundle changes) are still present in v3.0.0: Create a new patch file targeting v3.0.0 by installing the new version and re-applying the necessary changes, then running patch-package to generate a new @alephium+web3+3.0.0.patch file.

2. If v3.0.0 no longer has these issues: Delete the stale patches/@alephium+web3+1.5.2.patch file.

Without this fix, running yarn install / npm install will trigger the postinstall script which runs patch-package, and it will either fail or produce a warning about an unmatched patch.
Open in Devin Review

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

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​alephium/​web3@​3.0.290100819870
Updated@​alephium/​walletconnect-provider@​1.5.2 ⏵ 3.0.279 +110080 +298 +2100

View full report

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