You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Medium Risk
Wide dependency swap across wallet, transaction, and validation layers; behavior should be mostly equivalent but subtle API/serialization differences in the new BDK package could affect PSBT/address handling and chain interactions.
Overview
Updates the Snap’s Bitcoin Dev Kit dependency by replacing @metamask/bitcoindevkit with @bitcoindevkit/bdk-wallet-web throughout the codebase (entities, handlers, infra adapters, JSX views, and tests), including updating Jest mocks accordingly.
Refreshes lockfile entries and bumps the Snap manifest shasum to match the rebuilt bundle.
Written by Cursor Bugbot for commit 34353f0. This will update automatically on new commits. Configure here.
Each alert has instructions on how to review if you don't know what it means. If lost, ask your Security Liaison or the supply-chain group
Copy-paste ignore lines for specific packages or a group of one kind with a note on what research you did to deem it safe. @SocketSecurity ignore npm/PACKAGE@VERSION
Action
Severity
Alert (click "▶" to expand/collapse)
Block
Network access: npm @bitcoindevkit/bdk-wallet-web in module globalThis["fetch"]
Next steps: Take a moment to review the security alert
above. Review the linked package source code to understand the potential
risk. Ensure the package is not malicious before proceeding. If you're
unsure how to proceed, reach out to your security team or ask the Socket
team for help at support@socket.dev.
Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/@bitcoindevkit/bdk-wallet-web@0.2.0. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
Hi all, thanks for updating to the official bitcoindevkit package bdk-wallet-web. The current version has some improvements over the archived MetaMask one but is still far from having all the BDK features. It currently support bdk v1 but will soon support bdk v2.
One of the features it will include apart from general improvements from the underlying lib is support for dust checks. Currently the Snap verifies dust manually by having some hardcoded values in validation.ts, you'll be able to replace that with validation from bdk-wallet-web like the rest of the bitcoin validations.
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
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.
Note
Medium Risk
Wide dependency swap across wallet, transaction, and validation layers; behavior should be mostly equivalent but subtle API/serialization differences in the new BDK package could affect PSBT/address handling and chain interactions.
Overview
Updates the Snap’s Bitcoin Dev Kit dependency by replacing
@metamask/bitcoindevkitwith@bitcoindevkit/bdk-wallet-webthroughout the codebase (entities, handlers, infra adapters, JSX views, and tests), including updating Jest mocks accordingly.Refreshes lockfile entries and bumps the Snap manifest
shasumto match the rebuilt bundle.Written by Cursor Bugbot for commit 34353f0. This will update automatically on new commits. Configure here.