Skip to content

Commit 64f98f1

Browse files
fix(deps): address Semgrep supply chain security findings (#3927)
## Summary Addresses Semgrep supply chain findings in keep-core across Go modules and JavaScript lock files. ## Go modules The go-ethereum upgrade (CVE-2026-22862, CVE-2026-22868, CVE-2026-26314) was attempted but reverted -- the new version requires CGO support not available in the Alpine-based CI environment. This will be addressed in a separate PR. **Known limitations (require separate PRs):** - **go-ethereum CVE-2026-22862, CVE-2026-22868, CVE-2026-26314**: Upgrade to v1.17.2 reverted due to CGO/Alpine blocker. Separate PR needed with Dockerfile changes. - **btcd CVE-2024-38365**: Upgrading btcd to v0.24.0+ requires removing the `replace` workaround that redirects `btcd` and `btcd/v2` to compatible versions for transitive deps using the old btcec API. The existing `replace => v0.22.3` predates the v0.23 rewrite where this bug was introduced. - **tss-lib GHSA-h24c-6p6p-m3vx**: Already mitigated -- `replace` directive uses `github.com/threshold-network/tss-lib` fork instead of the vulnerable `bnb-chain/tss-lib`. ## JavaScript | Package | Fix | CVEs/MALs | |---|---|---| | `scrypt-shim@0.1.0` (ecdsa, random-beacon) | Direct yarn.lock pin to npm security placeholder `0.0.1-security` | MAL-2022-5972 | | `get-func-name@2.0.0` (ecdsa, random-beacon) | Direct yarn.lock pin to `2.0.2` (yarn projects -- `overrides` field is npm-only and ignored by yarn) | CVE-2023-43646 | | `get-func-name@2.0.0` (solidity-v1, token-stakedrop, dashboard) | npm `overrides` `>=2.0.2` | CVE-2023-43646 | | `http-cache-semantics@4.0.x` | npm `overrides` `>=4.1.1` in dashboard, solidity-v1, token-stakedrop | CVE-2022-25881 | | `axios@0.21.2` (dashboard) | Direct upgrade to `^1.8.2` | CVE-2026-25639 | | `terser@4.6.3` (dashboard) | npm `overrides` `>=4.8.1` | CVE-2022-25858 | | `decompress@4.2.0` (dashboard) | npm `overrides` `>=4.2.1` | CVE-2020-12265 | | `bsock@0.1.9` (token-stakedrop) | `overrides` `>=0.1.10` for non-bundled path; **bundled copy inside bcoin fork cannot be overridden** | CVE-2023-50475 | ## Test plan - [ ] Go build passes (`go build ./...`) - [ ] CI passes - [ ] Semgrep scan shows reduced findings
2 parents 66b187e + c6c72fb commit 64f98f1

12 files changed

Lines changed: 54758 additions & 62116 deletions

File tree

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "token-stakedrop/merkle-distributor"]
22
path = token-stakedrop/merkle-distributor
3-
url = https://github.com/keep-network/merkle-distributor.git
3+
url = https://github.com/threshold-network/merkle-distributor.git

solidity-v1/dashboard/package-lock.json

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

solidity-v1/dashboard/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@walletconnect/keyvaluestorage": "1.0.2",
1818
"@walletconnect/modal": "2.5.9",
1919
"@walletconnect/web3-subprovider": "^1.3.6",
20-
"axios": "^0.21.2",
20+
"axios": "^1.8.2",
2121
"bignumber.js": "9.0.0",
2222
"copy-to-clipboard": "^3.3.1",
2323
"ethereumjs-common": "^1.5.0",
@@ -76,5 +76,11 @@
7676
"not dead",
7777
"not ie <= 11",
7878
"not op_mini all"
79-
]
79+
],
80+
"overrides": {
81+
"http-cache-semantics": "^4.1.1",
82+
"get-func-name": "^2.0.2",
83+
"terser": "^4.8.1",
84+
"decompress": "^4.2.1"
85+
}
8086
}

0 commit comments

Comments
 (0)