Skip to content

fix: reduce Socket.dev supply chain risk alerts#94

Merged
billchurch merged 1 commit intomainfrom
fix/reduce-socket-dev-alerts
Feb 26, 2026
Merged

fix: reduce Socket.dev supply chain risk alerts#94
billchurch merged 1 commit intomainfrom
fix/reduce-socket-dev-alerts

Conversation

@billchurch
Copy link
Owner

@billchurch billchurch commented Feb 26, 2026

Summary

  • Remove unused standalone express server from index.ts, eliminating the Network access and URL strings Socket.dev alerts
  • Replace fs.readFileSync with Node.js 22 JSON import assertion in client/index.ts, eliminating the Filesystem access alert
  • Delete orphaned csp-config.ts and its compiled outputs (only consumer was the removed standalone server)
  • Remove unused VALID_KEY_3 test variable to clear lint warning

Net: -111 lines, +21 lines. Resolves 3 of 4 Socket.dev package alerts for v3.4.0.

Test plan

  • npm run check:all passes (0 lint errors, 0 warnings, 216/216 tests pass)
  • npm pack --dry-run confirms correct published file list
  • No fs imports remain in entry points
  • No URL strings remain in entry points
  • Verify webssh2 server still resolves getPublicPath() and version correctly via npm link

- Remove unused standalone express server from index.ts (eliminates
  network access and URL string alerts)
- Replace fs.readFileSync with JSON import assertion in client/index.ts
  (eliminates filesystem access alert)
- Delete orphaned csp-config.ts and compiled outputs
- Remove unused VALID_KEY_3 test variable
@billchurch billchurch merged commit 5cdc146 into main Feb 26, 2026
6 checks passed
@billchurch billchurch deleted the fix/reduce-socket-dev-alerts branch February 26, 2026 18:13
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