Skip to content

fix: bump transitive ws off vulnerable 8.17.1 (dependency-review)#3019

Open
yogurtandjam wants to merge 1 commit into
aave:feat/funkit-integrationfrom
yogurtandjam:fix/bump-ws
Open

fix: bump transitive ws off vulnerable 8.17.1 (dependency-review)#3019
yogurtandjam wants to merge 1 commit into
aave:feat/funkit-integrationfrom
yogurtandjam:fix/bump-ws

Conversation

@yogurtandjam

@yogurtandjam yogurtandjam commented Jun 15, 2026

Copy link
Copy Markdown

Problem

dependency-review fails on ws@8.17.1 (pulled transitively: @funkit/connect@funkit/fun-relay@relayprotocol/*tronweb@6.3.0ethers@6.13.5, which pins ws@8.17.1). Two advisories apply, per the GitHub Advisory DB:

Advisory Severity ws 8.x affected First patched
GHSA-96hv-2xvq-fx4p high < 8.21.0 8.21.0
GHSA-58qx-3vcg-4xpx medium < 8.20.1 8.20.1

8.17.1 is the only net-new ws@8.x this branch line adds vs main (which already has 8.18.0/8.18.3/8.20.1/8.21.0).

Fix

Scoped yarn resolution so ethers's ws resolves to ^8.21.0 — patched for both advisories and already in the tree (clean dedupe, no net-new vulnerable version):

"resolutions": { "tronweb/ethers/ws": "^8.21.0" }
  • Anchored at tronweb (a direct dependency), not the transitive ethers — yarn-classic ignores a selective resolution anchored at a deeply-transitive package ("ethers/ws" had no effect).
  • Scoped, not global — a global "ws" resolution would drag WalletConnect's ws@7.x → 8.x; this leaves ws@7.5.11 (already patched for the 7.x range) untouched.

Verification (post yarn install)

  • no ws resolves to 8.17.1 (the only PR-net-new ws@8.x)
  • ethers's ws requirement now resolves to 8.21.0
  • ws@7.5.11 (WalletConnect) unchanged

ws is Node-only; ethers/WalletConnect use native WebSocket in the browser — so runtime impact is negligible.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

@yogurtandjam is attempting to deploy a commit to the Aave Team on Vercel.

A member of the Team first needs to authorize it.

ws@8.17.1 is pulled by ethers@6.13.5 <- tronweb <- funkit's relay deps and trips
dependency-review on two advisories:
  - GHSA-96hv-2xvq-fx4p (high)   ws 8.x affected < 8.21.0  (first patched 8.21.0)
  - GHSA-58qx-3vcg-4xpx (medium) ws 8.x affected < 8.20.1  (first patched 8.20.1)

Add a scoped resolution so ethers' ws resolves to ^8.21.0 (already in the tree,
patched for BOTH advisories) instead of 8.17.1:

  "resolutions": { "tronweb/ethers/ws": "^8.21.0" }

- Anchored at tronweb (a direct dep), not the transitive ethers: yarn-classic
  won't apply a selective resolution anchored at a deeply-transitive package.
- Scoped, not global: a global ws resolution would drag WalletConnect's ws@7.x
  to 8.x. This leaves ws@7.5.11 (already patched for the 7.x range) untouched.

Verified: no ws resolves to 8.17.1; ethers' ws -> 8.21.0; ws@7.5.11 unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant