Skip to content

fix(deps): update ws in ANS-104 tooling - #666

Closed
jatmn wants to merge 1 commit into
Twigpine:mainfrom
jatmn:fix/dependabot-scripts
Closed

jatmn wants to merge 1 commit into
Twigpine:mainfrom
jatmn:fix/dependabot-scripts

Conversation

@jatmn

@jatmn jatmn commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Require a patched ws release 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

  • Security fix

What changed

  • Raise scripts/package.json's ws override to ^8.23.0, the first patched 8.x release.
  • Regenerate the ws entry in scripts/package-lock.json at 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.mjs

The Ethereum and Ed25519 outputs matched main byte for byte. npm audit reports zero high-severity findings. Its remaining entries derive from the low-severity elliptic advisory, which has no patched release. Elliptic advisory

Before you request review

  • Scope is one logical change
  • cargo test --workspace passes locally
  • Both existing vectors were regenerated and compared with the baseline
  • cargo fmt --all -- --check and cargo clippy --workspace --all-targets -- -D warnings pass locally
  • The commit uses a Conventional Commit title
  • Checked existing PRs for duplication

Reviewed and pushed commit 54d5715c8ab702ce0e4309e8f27209104478be29.

Summary by CodeRabbit

  • Chores
    • Updated an internal package version. No user-facing changes are included in this update.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The ws override in scripts/package.json changes from ^8.21.0 to ^8.23.0.

Changes: WebSocket override update

Layer / File(s) Summary
Update the ws override
scripts/package.json
The ws override changes from ^8.21.0 to ^8.23.0.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested labels: kind:security

Suggested reviewers: beardthelion

Merge Risk: Minimal · up to 54d57 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: raising the ws dependency override in the ANS-104 tooling. The raw summary confirms only scripts/package.json changed, from ^8.21.0 to ^8.23.0. The title follows Conve…
Description check Passed The description covers the template sections: Summary, Motivation and context, Kind of change (Security fix checked), What changed, How a reviewer can verify, and Before you request review. It adds a …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: raising the ws dependency override in the ANS-104 tooling. The raw summary confirms only scripts/package.json changed, from ^8.21.0 to ^8.23.0. The title follows Conventional Commits and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description covers the template sections: Summary, Motivation and context, Kind of change (Security fix checked), What changed, How a reviewer can verify, and Before you request review. It adds a clear security rationale with the advisory link and verification steps. It omits the 'Closes #' issue link, which the template asks for, and it leaves the Protocol & signing impact block unaddressed. That block is optional when the change does not touch the protocol, and this change only updates a dev tooling dependency. The Notes for reviewers section is optional and absent. The Summary line says 'Require a patched ws release', which is accurate.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 39e98db9-0ebd-4a01-addd-d5a4060e45c4
Commits

Reviewing files that changed from the base of the PR and between 617e876 and 54d5715.

Files ignored due to path filters: 1

  • scripts/package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 1

  • scripts/package.json

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@jatmn jatmn self-assigned this Dec 2, 2026
@jatmn
jatmn marked this pull request as ready for review December 2, 2026 05:32
Copilot AI balanced review requested due to automatic review settings December 2, 2026 05:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 ws 8.23.0 or later within 8.x.
  • Updates the lockfile to resolve ws 8.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

@jatmn
jatmn requested a review from beardthelion December 2, 2026 05:41

@beardthelion beardthelion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@jatmn
jatmn enabled auto-merge December 2, 2026 14:26
@beardthelion beardthelion mentioned this pull request Dec 3, 2026
7 of 17 tasks
@beardthelion

Copy link
Copy Markdown
Collaborator

Re-homed in #672.

auto-merge was automatically disabled December 3, 2026 05:16

Pull request was closed

@jatmn
jatmn deleted the fix/dependabot-scripts branch December 3, 2026 14:44
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.

3 participants