Skip to content

fix(deps): remediate 21 dependency vulnerabilities (bun audit) - #61

Open
doanhv wants to merge 1 commit into
snipeship:mainfrom
doanhv:fix/dependency-vulnerabilities-audit-remediation
Open

fix(deps): remediate 21 dependency vulnerabilities (bun audit)#61
doanhv wants to merge 1 commit into
snipeship:mainfrom
doanhv:fix/dependency-vulnerabilities-audit-remediation

Conversation

@doanhv

@doanhv doanhv commented Jul 23, 2026

Copy link
Copy Markdown

See commit message for full details: react-router-dom bumped to 7.18.1 (fixes 9 advisories), diff/file-type pinned via overrides (fixes 2 more), 8 remaining vulnerabilities deliberately deferred with documented reachability reasoning (no upstream patch / gated behind DEV-only code path / not a used feature).

bun audit found 21 vulnerabilities (1 critical, 12 high, 7 moderate, 1
low) in transitive dependencies. Assessed real reachability per
package before acting, rather than bulk-bumping blindly:

- react-router-dom ^7.8.1 -> ^7.18.1 (apps/web): fixes all 9
  react-router advisories (open redirects, SSR/RSC XSS, vendored
  turbo-stream arbitrary constructor invocation, CSRF, DoS). apps/web
  is a client-only BrowserRouter SPA (no SSR/RSC entrypoint), so the
  worst advisories were not reachable here, but the in-range patch
  bump is free and safe -- still major version 7, no breaking changes
  in this apps usage (BrowserRouter/Routes/Route/Navigate/Link/
  useLocation only).
- Added diff (>=8.0.3) and file-type (>=21.3.1) to the existing
  root overrides block: both are transitive deps of @opentui/core
  (used for TUI image rendering via jimp), pinned/ranged to old
  vulnerable versions upstream. Verified via a direct dynamic-import
  smoke test that @opentui/core and its image-rendering submodule
  still load correctly with the overridden versions.

Remaining 8 vulnerabilities (shell-quote, ws, ip-address, basic-ftp)
are deliberately deferred, not silently ignored:
- shell-quote (critical) + ws: only reachable via react-devtools-core,
  a peerDependency of @opentui/react gated behind a DEV=true-only code
  branch (not the default runtime path); no upstream patch exists yet
  for shell-quote regardless.
- ip-address + basic-ftp: transitive to electrobuns PAC/SOCKS-proxy
  resolution chain (desktop app packaging), not a directly-used FTP
  feature.

Verified: full-workspace bun run typecheck (16/16 clean), bun run test
(all workspaces green except 2 pre-existing, unrelated failures on a
sibling branch), bun run lint:check (only the 1 known pre-existing
unrelated nit), bun run build:dashboard (apps/web builds cleanly).
Independently reviewed by a fresh code-reviewer (APPROVE), including a
follow-up on a flagged residual risk (jimp/image-rendering path
untested by any existing test -- confirmed unreachable from ccflares
own TUI code and runtime-smoke-tested regardless).
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