mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
* fix(security): drop bcrypt → bcryptjs to eliminate tar CVE chain (#1608) `@claude-flow/security` was pulling 6 HIGH-severity CVEs through this transitive chain: @claude-flow/security → bcrypt@5.1.1 → @mapbox/node-pre-gyp@1.0.11 → tar@<=7.5.10 (vulnerable) CVEs (all tar <=7.5.10): - GHSA-34x7-hfp2-rc4v Hardlink path traversal → arbitrary file create - GHSA-8qq5-rm4j-mr97 Symlink poisoning → arbitrary file overwrite - GHSA-83g3-92jg-28cx Hardlink target escape → arbitrary read/write - GHSA-qffp-2rhf-9h96 Drive-relative hardlink path traversal - GHSA-9ppj-qmqm-q256 Drive-relative symlink path traversal - GHSA-r6q2-hw4h-h46w Race condition in node-tar path reservations Downstream consumers of `@claude-flow/security` were forced to add a `tar` `overrides` block to their own `package.json` to clear `npm audit`. The umbrella `claude-flow` package already does this, but direct consumers of `@claude-flow/security` (or anything that depends on it transitively) couldn't rely on that. Switch from `bcrypt` (native, requires @mapbox/node-pre-gyp build chain) to `bcryptjs@^3.0.3` (pure JS, zero native deps, zero tar dependency): - Same hash format (`$2a$`, `$2b$`, `$2y$`) — existing hashes verify unchanged. - Same API surface for the calls this module makes (`bcrypt.hash`, `bcrypt.compare`); the `import * as bcrypt from 'bcryptjs'` form keeps the rest of the module's call sites byte-identical. - Drops the `@types/bcrypt` devDep — bcryptjs ships its own types. Bumps `@claude-flow/security` 3.0.0-alpha.6 → 3.0.0-alpha.7. Republish required for downstream consumers to pick up the fix; the source change itself doesn't move until that publish lands. Closes #1608. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(lockfile): regenerate v3/pnpm-lock.yaml for bcryptjs swap Companion to the bcrypt → bcryptjs swap in @claude-flow/security/package.json. CI runs with `--frozen-lockfile` so the manifest change couldn't land without a matching lockfile. Most of the diff is incidental patch-version drift of @opentelemetry/api 1.9.0 → 1.9.1 across vitest dev-deps; the load-bearing change is the @claude-flow/security entry switching from `bcrypt` to `bcryptjs` and dropping `@types/bcrypt`. Co-Authored-By: RuFlo <ruv@ruv.net>