Skip to content

chore(deps): upgrade ws, socket.io-parser and engine.io (#3707, #3708) - #3711

Merged
holmesworcester merged 6 commits into
developfrom
security/ws-socketio-upgrade
Oct 27, 2026
Merged

holmesworcester merged 6 commits into
developfrom
security/ws-socketio-upgrade

Conversation

@holmesworcester

@holmesworcester holmesworcester commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Dependency security upgrade for #3707 and #3708.

  • ws → 8.21+ (resolved 8.22.0) for every runtime copy (backend direct, engine.io, engine.io-client, socket.io-adapter)
  • socket.io / socket.io-client → 4.8.4; socket.io-parser → 4.2.7+ (resolved 4.2.7)
  • engine.io → 6.6.11 (>= 6.6.10)
  • Updated backend, desktop, mobile and state-manager manifests (with overrides) and lockfiles
  • New CI check npm run check:runtime-deps that fails if a lockfile's production tree resolves ws, socket.io-parser or engine.io below the patched floor (with unit tests)
  • New backend regression test ws.fragment-flood.spec.ts against the it-ws server used by the WebSocket-over-Tor listener

Remaining sub-floor ws copies in the locks are dev-only tooling (Storybook, webpack-dev-server, orbitdb dev deps) or React Native CLI/Metro internals, not Quiet runtime paths.

Testing

  • check:runtime-deps + its unit tests: pass
  • backend: websocketOverTor, qss and websocket specs pass (129 passed, 3 skipped); websocketOverTor.tor.spec.ts cases are already it.skip upstream; tor.service.tor.spec.ts hidden-service test timed out waiting for Tor HS_DESC (no network access in the test environment)
  • state-manager jest: 322/322; desktop jest: 761 passed; mobile jest: all pass except one Chat snapshot that differs only by timezone

Follow-up (local QSS e2e)

socket.io-parser 4.2.6+ caps binary attachments per packet at 10 by default, which broke QSS sync batches. Added a bounded cap of 1000 (socket.parser.ts) on the QSS client and local socket server, with a unit test. Local QSS e2e with LOCAL_TRANSPORT=true: multipleClients.qss 63 passed/23 skipped, multipleClients.privateChannels.qss 75/75, oneClient.qss 29/29.

holmesworcester and others added 6 commits October 25, 2026 12:33
…io to 6.6.10+

Refs #3707, #3708. Adds overrides in backend/desktop/mobile/state-manager, a CI lockfile floor check, and a ws regression test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…efault

socket.io-parser 4.2.6+ rejects packets with more than 10 binary attachments, which broke QSS sync batches. Use a bounded cap of 1000 on the QSS client and the local socket server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… Function

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@holmesworcester
holmesworcester merged commit 4d12395 into develop Oct 27, 2026
49 of 51 checks passed
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