Skip to content

fix(deps): bump ws to 8.23.0 and 7.5.14 for GHSA-37g9-w4hg-h9qr - #2987

Merged
jariy17 merged 1 commit into
v1.xfrom
fix/ws-audit
Dec 2, 2026
Merged

jariy17 merged 1 commit into
v1.xfrom
fix/ws-audit

Conversation

@jariy17

@jariy17 jariy17 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

What

Bumps ws from 8.21.3 to 8.23.0, and the copy nested under react-devtools-core from 7.5.13 to 7.5.14. Lockfile only (bun audit fix); no package.json change.

Why

bun run audit fails in verify / Linux on every PR and push to v1.x since this advisory was published:

  • ws >=8.0.0 <8.23.0 and >=7.0.0 <7.5.14: GHSA-37g9-w4hg-h9qr (high, memory exhaustion via unbounded automatic pong responses)

ws comes in through ink, @fastify/websocket (via bedrock-agentcore) and react-devtools-core.

How tested

  • bun run audit reports no vulnerabilities (571 packages).
  • bun test (7224 tests, 0 fail), typecheck, lint:check, format:check, secrets:check and build pass.

@jariy17
jariy17 requested a review from a team December 2, 2026 15:20
@github-actions github-actions Bot added the size/xs PR size: XS label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-1.5.0.tgz

How to install

gh release download pr-2987-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-1.5.0.tgz

@agentcore-devx-automation agentcore-devx-automation Bot added agentcore-harness-reviewing AgentCore Harness review in progress claude-security-reviewing Claude Code /security-review in progress labels Dec 2, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Dec 2, 2026

@agentcore-devx-automation agentcore-devx-automation Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AgentCore Harness Review

Verdict: Looks good

Lockfile-only change; I verified it end to end against the PR's base branch (v1.x):

  • Diff is exactly the two ws entries (bun.lock, 2 insertions / 2 deletions) — no reformatting, no unrelated churn, no command.md.
  • Integrity hashes match the npm registry for both versions:
    • ws@8.23.0 → sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==
    • ws@7.5.14 → sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug==
  • Both resolutions still satisfy every declared range, so no package.json edit is needed: direct dep ws: ^8.21.3, ink@7.1.1 (^8.20.0), @fastify/websocket@11.3.0 (^8.16.0), bedrock-agentcore@0.4.6 (^8.18.3), and react-devtools-core@7.0.1 (ws: ^7).
  • 8.23.0's only behavioral addition is the maxPendingAutoPongs option (default-capped auto-pongs). The sole first-party consumer, src/core/harnessShell.ts, is a client that never pauses the socket or relies on unbounded auto-pong buffering, and its tests use a fake socket, so no code change is implied.

Non-blocking: ws@8.23.1 is now published with follow-up correctness fixes (permessage-deflate window-bits validation, cross-realm ArrayBuffer masking, redirect error handling) and also satisfies ^8.21.3. 8.23.0 is sufficient to clear GHSA-37g9-w4hg-h9qr, so this is only worth folding in if you happen to re-run bun audit fix.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Dec 2, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.08%. Comparing base (6e41a63) to head (4feb79b).

Additional details and impacted files
@@           Coverage Diff           @@
##             v1.x    #2987   +/-   ##
=======================================
  Coverage   97.08%   97.08%           
=======================================
  Files         793      793           
  Lines       72910    72910           
=======================================
  Hits        70783    70783           
  Misses       2127     2127           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jariy17
jariy17 merged commit 41673b7 into v1.x Dec 2, 2026
26 of 27 checks passed
@jariy17
jariy17 deleted the fix/ws-audit branch December 2, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants