Skip to content

Commit d666e10

Browse files
pranavjain97claude
andcommitted
chore: bump version to v2.1.0 and fix trivy vulnerabilities
Bump version to 2.1.0 for GHCR release. Fix all 17 Trivy HIGH/CRITICAL findings via npm overrides: - @xmldom/xmldom: ^0.9.10 (CVE-2026-34601, CVE-2026-41672-41675) - protobufjs: ^7.5.5 (CVE-2026-41242, CRITICAL) - basic-ftp: ^5.3.0 (CVE-2026-39983, GHSA-6v7q, GHSA-rp42) - lodash: ^4.18.0 (CVE-2026-4800) Also fix missing keychain nocks in sendMany multisig test -- the handler fetches all 3 keychains for walletPubs but the test only mocked user. WAL-803 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent edd9523 commit d666e10

3 files changed

Lines changed: 28 additions & 8 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitgo/advanced-wallets",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Advanced Wallets - On-Premises Key Management with BitGo Express",
55
"main": "./dist/src/index.js",
66
"types": "./dist/src/index.d.ts",
@@ -110,7 +110,7 @@
110110
"debug": "^3.1.0",
111111
"express": "4.21.2",
112112
"io-ts": "2.1.3",
113-
"lodash": "^4.17.20",
113+
"lodash": "^4.18.0",
114114
"morgan": "^1.9.1",
115115
"openpgp": "5.11.3",
116116
"proxy-agent": "6.4.0",
@@ -136,8 +136,6 @@
136136
"store2": "^2.14.4",
137137
"tar": "^7.5.11",
138138
"basic-ftp": "^5.3.0",
139-
"@xmldom/xmldom": "^0.9.9",
140-
"protobufjs": "^7.5.5",
141139
"flatted": "^3.4.0",
142140
"serialize-javascript": "^7.0.3",
143141
"@isaacs/brace-expansion": "^5.0.1",
@@ -147,7 +145,10 @@
147145
"validator": "^13.15.22",
148146
"node-forge": "^1.3.2",
149147
"xml2js": "^0.5.0",
150-
"glob": "^11.1.0"
148+
"glob": "^11.1.0",
149+
"@xmldom/xmldom": "^0.9.10",
150+
"protobufjs": "^7.5.5",
151+
"lodash": "^4.18.0"
151152
},
152153
"devDependencies": {
153154
"@api-ts/openapi-generator": "^5.7.0",

src/__tests__/api/master/sendMany.test.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,12 +1026,29 @@ describe('POST /api/v1/:coin/advancedwallet/:walletId/sendMany', () => {
10261026

10271027
const keychainGetNock = nock(bitgoApiUrl)
10281028
.get(`/api/v2/${coin}/key/user-key-id`)
1029+
.times(2)
10291030
.matchHeader('any', () => true)
10301031
.reply(200, {
10311032
id: 'user-key-id',
10321033
pub: 'xpub_user',
10331034
});
10341035

1036+
const backupKeychainGetNock = nock(bitgoApiUrl)
1037+
.get(`/api/v2/${coin}/key/backup-key-id`)
1038+
.matchHeader('any', () => true)
1039+
.reply(200, {
1040+
id: 'backup-key-id',
1041+
pub: 'xpub_backup',
1042+
});
1043+
1044+
const bitgoKeychainGetNock = nock(bitgoApiUrl)
1045+
.get(`/api/v2/${coin}/key/bitgo-key-id`)
1046+
.matchHeader('any', () => true)
1047+
.reply(200, {
1048+
id: 'bitgo-key-id',
1049+
pub: 'xpub_bitgo',
1050+
});
1051+
10351052
const prebuildStub = sinon.stub(Wallet.prototype, 'prebuildTransaction').resolves({
10361053
txHex: 'prebuilt-tx-hex',
10371054
txInfo: { nP2SHInputs: 1, nSegwitInputs: 0, nOutputs: 2 },
@@ -1072,6 +1089,8 @@ describe('POST /api/v1/:coin/advancedwallet/:walletId/sendMany', () => {
10721089

10731090
walletGetNock.done();
10741091
keychainGetNock.done();
1092+
backupKeychainGetNock.done();
1093+
bitgoKeychainGetNock.done();
10751094
sinon.assert.calledOnce(prebuildStub);
10761095
sinon.assert.calledOnce(verifyStub);
10771096
signNock.done();

0 commit comments

Comments
 (0)