Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the ws dependency update addressing the denial-of-service advisory.
No open issues 🎉
1 file not reviewed
scripts/package-lock.json: Generated file
What changed in this PR
Updates the ANS-104 golden-vector tooling’s transitive ws dependency to address a denial-of-service advisory.
Changes:
- Raises the npm override to require
ws8.23.0 or later within 8.x. - Updates the lockfile to resolve
ws8.23.1.
| File | Description |
|---|---|
scripts/package.json |
Raises the ws override to ^8.23.0. |
scripts/package-lock.json |
Locks ws to 8.23.1 with updated download metadata. |
Review effort: Balanced
beardthelion
left a comment
There was a problem hiding this comment.
Approving. The override floor of ^8.23.0 is the first patched 8.x release for GHSA-37g9-w4hg-h9qr (vulnerable range >= 8.0.0, < 8.23.0), and the lock entry is 8.23.1.
Checked on separate installs of main and this head: npm ci is clean, npm ls ws shows 8.22.1 on main and 8.23.1 here (only via arbundles > @ethersproject/providers), and npm audit --omit=dev goes from 2 high findings to none. The 13 that remain are low severity, all on the elliptic chain. Both golden-vector scripts exit 0 with output byte-identical to main, and the lock integrity hash matches the registry's for ws@8.23.1. No other package.json in the repo declares ws.
|
Re-homed in #672. |
Summary
Require a patched
wsrelease in the ANS-104 golden-vector tooling. A clean install now uses 8.23.1.Motivation & context
The 8.22.1 lockfile entry is affected by a high-severity denial-of-service advisory. Ethers v5 pins its WebSocket dependency, so the existing npm override supplies the patched version. GitHub security advisory
Kind of change
What changed
scripts/package.json'swsoverride to^8.23.0, the first patched 8.x release.wsentry inscripts/package-lock.jsonat 8.23.1.How a reviewer can verify
cd scripts npm ci npm ls ws npm audit --omit=dev node ans104_golden.mjs node ans104_golden_ed25519.mjsThe Ethereum and Ed25519 outputs matched
mainbyte for byte. npm audit reports zero high-severity findings. Its remaining entries derive from the low-severityellipticadvisory, which has no patched release. Elliptic advisoryBefore you request review
cargo test --workspacepasses locallycargo fmt --all -- --checkandcargo clippy --workspace --all-targets -- -D warningspass locallyReviewed and pushed commit
54d5715c8ab702ce0e4309e8f27209104478be29.Summary by CodeRabbit