T08 · Insecure Dependencies
- Location
jb-deploy-ui/SKILL.md:76- Finding
Unpinned Remote JavaScript Executes in Wallet-Connected Applications
- Content
View full analysis
``` Other affected examples similarly import wallet, transaction-encoding, blockchain-client, and contract utilities from unversioned `https://esm.sh/viem` URLs. ### Technical Analysis The generated browser applications execute JavaScript obtained directly from third-party CDNs. The `esm.sh` imports do not specify an immutable package version or content hash. The jsDelivr URL only pins the dependency to the broad major version `6`, allowing later releases within that range to change the effective code after the Skill has been reviewed. This is particularly dangerous because the affected pages interact with injected wallet providers and perform security-sensitive actions such as: - Constructing transaction calldata - Selecting transaction targets and chains - Requesting wallet signatures - Deploying contracts - Displaying transaction values and destinations - Submitting cross-chain transaction bundles A compromised CDN, package release, DNS route, or upstream package could therefore execute with the same browser privileges as the generated application. ### Attack Path 1. A user ge ...[truncated 1338 chars]- Remediation
View remediation
