Files
ruflo/package.json
T
e7299de48c fix(security): daily scan 2026-11-18 — 2 fixes (#5032)
* fix(security): vulnerable zod pin in claude-flow umbrella

The zod 4 migration (#5021) describes bumping the root claude-flow
package from zod 3.25.76 to 4.6.7, but the root package.json and
package-lock.json still pin 3.25.76, which is affected by
GHSA-mrhx-c7xc-m3w5 (memory exhaustion while validating oversized
constrained collections, high). The umbrella ships the cli and shared
dist, which resolve zod from the umbrella's own dependency, so this pin
is what claude-flow users get, and it also leaves the migrated zod 4
code running against zod 3.

Pin zod 4.6.7 (matching every @claude-flow/* leaf) and update the
lockfile. npm deduped the nested zod 4 copies onto the hoisted one and
synced the stale @claude-flow/shared workspace version (3.0.8 -> 3.0.9)
in the lockfile. Remaining zod 3 copies come only from agentic-flow and
the published plugin-gastown-bridge.

Test: tests/root-zod-advisory-pin.test.mjs fails on main, passes here.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy

* fix(security): missing auth on /ws in shared MCP HTTP transport

@claude-flow/shared ships its own HttpTransport (exported via MCPServer
and createTransport). #4962 hardened the @claude-flow/mcp copy, but the
shared copy still accepted every /ws upgrade when token auth was
enabled, and nothing after the upgrade checked a token. Token auth is
the setting that lets the transport bind beyond loopback, so that
configuration exposed every registered MCP tool over /ws without
credentials. The HTTP check also accepted any bearer token when the
token list was empty or unset, and compared tokens in non-constant time.

- verifyClient authenticates the upgrade when auth is enabled
  (Authorization: Bearer, or ?token= for browsers, parsed against a
  fixed base URL; never throws).
- Token matching fails closed on an empty list, skips unset entries,
  and compares SHA-256 digests with timingSafeEqual, no early exit.

Test: shared/__tests__/mcp/http-transport-ws-upgrade-auth.test.ts
(2 of 4 cases fail on main, all pass here).

shared is a non-bundled leaf: it needs a standalone publish to reach
direct consumers.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy

* fix(security): keep legacy v3/mcp tools compiling on zod 4

Follow-up to the root zod 4.6.7 pin: zod 4 removed the single-argument
z.record(value) form, so the 17 call sites in v3/mcp/tools added type
errors to the root tsc build. Use z.record(z.string(), z.unknown()),
the same rewrite #5021 applied to the @claude-flow packages. The root
build error set is now identical to origin/main.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy

* chore(shared): 3.0.10 for the /ws auth fix; CLI pins it

The shared transport fix is publishable source in a non-bundled leaf, so
the leaf-package-publish gate requires a version bump. Bump shared to
3.0.10 and the CLI's exact pin (pnpm lock specifier only; it stays a
workspace link).

Not done here, because it needs the published tarball: the root
claude-flow pin and package-lock.json entry stay at 3.0.9 until
@claude-flow/shared@3.0.10 is on npm (the lockfile needs its integrity
hash). Until then audit-leaf-versions-published and
audit-wrapper-dep-ranges report the unpublished pin, as designed.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy

* fix(security): claude-flow umbrella pins @claude-flow/shared 3.0.10

shared 3.0.10 (the /ws auth fix) is now published; the umbrella's exact
range must include it or audit-wrapper-dep-ranges fails and npx installs
resolve two shared copies.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: r <r@x>
2026-11-18 23:51:47 -05:00

235 lines
6.6 KiB
JSON

{
"name": "claude-flow",
"version": "3.77.2",
"workspaces": [
"v3/@claude-flow/codex",
"v3/@claude-flow/mcp",
"v3/@claude-flow/plugin-agent-federation",
"v3/@claude-flow/security"
],
"description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "dist/index.js",
"type": "module",
"bin": {
"claude-flow": "bin/cli.js"
},
"homepage": "https://ruv.io",
"bugs": {
"url": "https://github.com/ruvnet/ruflo/issues",
"email": "support@ruv.io"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ruvnet"
},
"files": [
"bin/**",
"v3/@claude-flow/cli/bin/**",
"v3/@claude-flow/cli/dist/**/*.js",
"v3/@claude-flow/cli/dist/**/*.d.ts",
"!v3/@claude-flow/cli/dist/**/*.map",
"v3/@claude-flow/cli/package.json",
"v3/@claude-flow/cli/catalog-manifest.json",
"v3/@claude-flow/cli/templates/**",
"v3/@claude-flow/shared/dist/**/*.js",
"v3/@claude-flow/shared/dist/**/*.d.ts",
"!v3/@claude-flow/shared/dist/**/*.map",
"v3/@claude-flow/shared/package.json",
"v3/@claude-flow/guidance/dist/**/*.js",
"v3/@claude-flow/guidance/dist/**/*.d.ts",
"!v3/@claude-flow/guidance/dist/**/*.map",
"v3/@claude-flow/guidance/package.json",
".claude-plugin/**",
".claude/**",
"!.claude/**/*.db",
"!.claude/**/*.map",
"!.claude/worktrees/**",
"!.claude/projects/**",
"!.claude/scheduled_tasks.lock",
"!.claude/sessions/**",
"README.md",
"LICENSE"
],
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"build:ts": "cd v3/@claude-flow/cli && npm run build || true",
"prepublishOnly": "node scripts/prepare-root-publish.mjs",
"test": "vitest",
"e2e": "node scripts/e2e/host-matrix.mjs",
"e2e:live": "RUFLO_E2E_LIVE=1 node scripts/e2e/host-matrix.mjs --live",
"test:ui": "vitest --ui",
"test:security": "vitest run v3/__tests__/security/",
"lint": "cd v3/@claude-flow/cli && npm run lint || true",
"security:audit": "npm audit --audit-level high",
"security:fix": "npm audit fix",
"security:test": "npm run test:security",
"v3:domains": "npm run build:domains",
"v3:swarm": "npm run start:swarm",
"v3:security": "npm run security:audit && npm run security:test"
},
"dependencies": {
"@claude-flow/cli-core": "3.7.8",
"@claude-flow/codex": "3.0.8",
"@claude-flow/mcp": "3.1.6",
"@claude-flow/neural": "3.0.3",
"@claude-flow/plugin-agent-federation": "1.0.7",
"@claude-flow/security": "3.0.7",
"@claude-flow/shared": "3.0.10",
"@electron/asar": "^4.3.1",
"@iarna/toml": "^2.2.5",
"@noble/ed25519": "2.3.0",
"@ruvector/attention": "^2.2.3",
"@ruvector/rabitq-wasm": "0.1.2",
"ajv": "^8.20.0",
"bcryptjs": "^3.0.3",
"chalk": "^5.3.0",
"commander": "^12.0.0",
"cors": "^2.8.5",
"express": ">=4.22.2",
"express-rate-limit": ">=8.4.1",
"fast-uri": "^3.1.6",
"fs-extra": "^11.2.0",
"helmet": "^7.2.0",
"inquirer": "^9.2.0",
"semver": "7.7.3",
"ws": ">=8.21.0",
"yaml": "^2.8.0",
"zod": "4.6.7"
},
"optionalDependencies": {
"@napi-rs/keyring": "1.3.0",
"@claude-flow/plugin-gastown-bridge": "^0.1.3",
"@ruvector/core": "^0.1.30",
"@ruvector/router": "^0.1.31",
"@ruvector/router-linux-x64-gnu": "^0.1.31",
"@ruvector/sona": "^0.1.11",
"agentdb": "^3.3.0",
"agentic-flow": "^3.0.0",
"better-sqlite3": "12.9.0",
"ruvector": "^0.3.13",
"@ruvector/learning-wasm": "0.1.29",
"agent-booster": "^0.2.2"
},
"overrides": {
"ruvector": "^0.3.13",
"better-sqlite3": "12.9.0",
"js-yaml": ">=4.3.0",
"hono": ">=4.13.2",
"@ruvector/rvf-wasm": "0.1.5",
"@ruvector/rvf": "0.3.4",
"@hono/node-server": ">=2.1.1",
"flatted": ">=3.4.0",
"tar": ">=7.5.11",
"picomatch": ">=4.0.3",
"path-to-regexp": ">=8.2.1",
"undici": ">=8.10.0",
"minimatch": ">=10.0.0",
"@isaacs/brace-expansion": ">=5.0.1",
"cacache": ">=20.0.0",
"make-fetch-happen": ">=15.0.0",
"express-rate-limit": ">=8.4.1",
"express": ">=4.22.2",
"tinypool": ">=2.1.2",
"qs": ">=6.15.2",
"protobufjs": ">=8.7.2",
"uuid": ">=14.0.0",
"@opentelemetry/core": ">=2.8.0",
"@opentelemetry/resources": ">=2.8.0",
"@opentelemetry/sdk-trace-base": ">=2.8.0",
"@opentelemetry/sdk-node": ">=0.220.0",
"@opentelemetry/auto-instrumentations-node": ">=0.75.0",
"@opentelemetry/exporter-prometheus": ">=0.220.0",
"@opentelemetry/exporter-trace-otlp-grpc": ">=0.220.0",
"@opentelemetry/exporter-trace-otlp-http": ">=0.220.0",
"@opentelemetry/exporter-trace-otlp-proto": ">=0.220.0",
"@opentelemetry/otlp-exporter-base": ">=0.220.0",
"@opentelemetry/otlp-grpc-exporter-base": ">=0.220.0",
"@opentelemetry/otlp-transformer": ">=0.220.0",
"axios": ">=1.19.0",
"fast-uri": "$fast-uri",
"vite": ">=8.0.16",
"ws": ">=8.21.0",
"@grpc/grpc-js": ">=1.14.4",
"form-data": ">=4.0.6",
"http-proxy-middleware": ">=3.0.7",
"@ruvector/ruvllm": "^4.1.0"
},
"devDependencies": {
"@openai/codex": "^0.98.0",
"@types/bcrypt": "^5.0.2",
"@types/node": "^20.0.0",
"esbuild": "^0.27.2",
"eslint": "^8.0.0",
"tsx": "^4.21.0",
"typescript": "^5.0.0",
"vitest": "^3.2.6"
},
"pnpm": {
"overrides": {
"better-sqlite3": "12.9.0"
}
},
"engines": {
"node": ">=20.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ruvnet/ruflo.git"
},
"keywords": [
"ruvflow",
"claude",
"claude-code",
"anthropic",
"ai",
"ai-agents",
"multi-agent",
"agent-orchestration",
"swarm-intelligence",
"swarm",
"mcp",
"model-context-protocol",
"llm",
"large-language-model",
"gpt",
"chatgpt",
"automation",
"workflow",
"orchestration",
"cli",
"developer-tools",
"devtools",
"coding-assistant",
"code-generation",
"enterprise",
"vector-database",
"embeddings",
"machine-learning",
"neural-network",
"hive-mind",
"distributed-systems",
"consensus",
"self-learning",
"local-vector-search",
"rvf",
"mcp-server"
],
"author": "RuvNet <ruv@ruv.io> (https://ruv.io)",
"license": "MIT",
"publishConfig": {
"access": "public",
"tag": "latest"
},
"bundleDependencies": [
"@claude-flow/codex",
"@claude-flow/mcp",
"@claude-flow/plugin-agent-federation",
"@claude-flow/security"
],
"directories": {
"doc": "docs",
"test": "tests"
}
}