ruflo icon indicating copy to clipboard operation
ruflo copied to clipboard

Security vulnerabilities

Open theguybieber opened this issue 9 months ago • 1 comments

I get the following errors when doing "npm install @claude-flow/guidance@alpha":

vscode âžœ /workspaces/rust-5/scraps/stock-val (master) $ npm install @claude-flow/guidance@alpha npm notice Access token expired or revoked. Please try logging in again. npm notice Access token expired or revoked. Please try logging in again. npm notice Access token expired or revoked. Please try logging in again. npm notice Access token expired or revoked. Please try logging in again. npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected] npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 561 packages in 31s

75 packages are looking for funding run npm fund for details

e âžœ /workspaces/rust-5/scraps/stock-val (master) $ npm install npm notice Access token expired or revoked. Please try logging in again. npm notice Access token expired or revoked. Please try logging in again. npm notice Access token expired or revoked. Please try logging in again. npm notice Access token expired or revoked. Please try logging in again. npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected] npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 561 packages, and audited 562 packages in 38s

75 packages are looking for funding run npm fund for details

10 high severity vulnerabilities

To address issues that do not require attention, run: npm audit fix

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

theguybieber avatar Feb 07 '26 02:02 theguybieber

Resolved in v3.1.0-alpha.34

This has been fully traced and fixed across multiple packages.

Root Cause

The vulnerability chain was:

@claude-flow/guidance → @claude-flow/memory → agentdb (optionalDeps) → sqlite3 → node-gyp → [email protected]
claude-flow (umbrella) → bcrypt → @mapbox/node-pre-gyp → [email protected]

[email protected] carried 10 HIGH severity vulnerabilities (path traversal CVEs). Both sqlite3 and bcrypt pulled it in via their native compilation toolchains (node-gyp / @mapbox/node-pre-gyp).

What Was Fixed

Package Version Change
agentdb 2.0.0-alpha.3.5 Removed sqlite3 from optionalDependencies (was never used — sql.js WASM is the actual backend)
@claude-flow/memory 3.0.0-alpha.9 Pinned [email protected]
claude-flow 3.1.0-alpha.34 Removed bcrypt from optionalDependencies, pinned [email protected]
@claude-flow/cli 3.1.0-alpha.34 Backward compatibility fixes for hooks

Before → After

Metric Before After
HIGH vulnerabilities 10 0
Deprecation warnings 11 4 (remaining are from agentic-flow upstream)
Packages removed — 73 (sqlite3 chain) + bcrypt chain

Eliminated Warnings

How to Update

# Install the fixed version
npm install claude-flow@alpha
# or
npx claude-flow@alpha

# Verify
npm audit
# Should show: found 0 vulnerabilities

Additional Fix: Backward Compatibility

Also fixed an issue where older settings.json hook configurations would error with [ERROR] Required option missing: --success. The --success flag now defaults to true when not provided, so existing setups work without modification.

ruvnet avatar Feb 11 '26 23:02 ruvnet