Skip to content

fix(security): pin ws to >=8.20.2 (DoS/memory disclosure) - #681

Open
birme wants to merge 1 commit into
mainfrom
security/649-ws-dos
Open

fix(security): pin ws to >=8.20.2 (DoS/memory disclosure)#681
birme wants to merge 1 commit into
mainfrom
security/649-ws-dos

Conversation

@birme

@birme birme commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Pinned transitive ws (pulled by happy-dom, dev-only) from 8.19.0 → 8.21.3 via an overrides entry ("ws": "^8.20.2") in package.json, keeping it within the 8.x major the tooling expects.
  • Fixes GHSA-96hv-2xvq-fx4p (memory-exhaustion DoS from tiny fragments) and GHSA-58qx-3vcg-4xpx (uninitialized memory disclosure). ws is not used in production — the frontend uses the native browser WebSocket.

Test plan

  • Tests pass (npm test) — 147 tests / 18 files
  • TypeScript compiles (npm run typecheck)
  • Lint clean (npm run lint)
  • npm ls ws shows only >=8.20.2 (8.21.3, overridden)

Closes #649

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Resolve transitive ws (via happy-dom) to a safe 8.x version to
address GHSA-96hv-2xvq-fx4p (memory-exhaustion DoS) and
GHSA-58qx-3vcg-4xpx (uninitialized memory disclosure). ws is a
dev-only transitive dependency; the frontend uses the native
browser WebSocket in production.

Co-Authored-By: Claude Sonnet 4.6 <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.

Security: ws transitive dependency has memory exhaustion DoS and uninitialized memory disclosure (high severity)

1 participant