fix(supply-chain): #2046 — eliminate all root-level HIGH/CRITICAL CVEs

Before:
  Root npm audit: 13 HIGH/CRITICAL across 25 vulns
  @claude-flow/browser fresh install: similar transitive chain
  Audit script reported 0 unaccepted only because it correctly scopes
  to direct deps — but transitive surface was hostile

Changes:

1. Bump agentdb to 3.0.0-alpha.14 (was alpha.10/13 across repo)
   - 3.0.0-alpha.14 dropped @opentelemetry/sdk-node from its
     dependencies block (still in optionalDependencies; overrides handle
     that). Eliminates the @opentelemetry/sdk-node CVE chain via direct
     dep replacement.
   - Updated: v3/@claude-flow/memory, v3/@claude-flow/cli, root.

2. Bump agentic-flow 2.0.7 → 2.0.11 (root) and ^2.0.3 → ^2.0.11
   (v3/@claude-flow/browser). Latest 2.x; closer to a Xenova-clean
   release when upstream ships it.

3. Add npm overrides at the root + at v3/@claude-flow/browser package
   (overrides do not cascade across separate npm projects, so browser
   needs its own block for standalone publish):
     @opentelemetry/sdk-node              >= 0.218.0  (was <0.217.0 CVE)
     @opentelemetry/auto-instrumentations >= 0.75.0
     @opentelemetry/exporter-prometheus   >= 0.217.0
     axios                                >= 1.13.2
     fast-uri                             >= 3.1.0
     vite                                 >= 6.4.6
     ws                                   >= 8.18.4

   Plus the existing browser-package overrides for hono / undici / tar /
   minimatch / picomatch / flatted / etc. — copied from root to keep
   the standalone npm-published install clean.

After:
  Root npm audit: 0 vulnerabilities (13 HIGH/CRITICAL → 0)
  Supply-chain audit: PASS (0 unaccepted direct-dep findings)
  Browser tests:  230/230 passing
  Graph-intel tests: 104/104 passing

One CVE remains in v3/@claude-flow/browser's STANDALONE fresh install
(end-user `npm install`): @xenova/transformers via agentic-flow direct
dependency. Cannot fix without upstream agentic-flow shipping a Xenova-
free release. agentic-flow@3.0.0-alpha.2 still has it. Documented in
accepted-findings.json under cve[] with:
  tracking: ADR-121 Phase 4
  expiresAt: 2026-08-19 (audit re-fails if upstream still hasn't shipped)
  rationale: browser package does not invoke embedding code paths

This is the right level of triage. The audit doesn't lie about it — it
just doesn't block our shipping while we wait for upstream.

Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
ruv committed 2026-05-19 08:34:23 -04:00
1 parent 0181fb85c2
commit 9a8c9c464f
7 files changed
+9548 -4464

No files matched your search

+9 -2
View File
@@ -2,16 +2,23 @@
"$schema": "./accepted-findings.schema.json",
"version": 1,
"comment": "Triaged supply-chain findings that the audit currently tolerates. Every entry must cite a tracking issue or ADR. Entries WITHOUT a tracking link fail audit. Adding to this file requires CODEOWNER review per .github/CODEOWNERS.",
"fixedDirectly": [
{
"date": "2026-05-19",
"commit": "PR #2050 follow-up",
"summary": "Bumped agentdb 3.0.0-alpha.10/13 → 3.0.0-alpha.14 (root, memory, cli), agentic-flow 2.0.7 → 2.0.11 (root + browser). Added overrides for @opentelemetry/sdk-node >= 0.218.0, @opentelemetry/auto-instrumentations-node >= 0.75.0, @opentelemetry/exporter-prometheus >= 0.217.0, axios >= 1.13.2, fast-uri >= 3.1.0, vite >= 6.4.6, ws >= 8.18.4. Root npm audit now reports 0 vulnerabilities (was 13 HIGH/CRITICAL). Same overrides duplicated in v3/@claude-flow/browser/package.json for standalone npm publish."
}
],
"cve": [
{
"package": "v3/@claude-flow/browser",
"depName": "agentic-flow",
"severity": "high",
"via": ["@xenova/transformers", "agentdb"],
"via": ["@xenova/transformers"],
"tracking": "ADR-121 Phase 4 — migration to ruvector-onnx-embeddings-wasm",
"trackingIssue": "https://github.com/ruvnet/ruflo/issues/2036",
"expiresAt": "2026-08-19",
"rationale": "Transitive via @xenova/transformers (upstream-retired, migration to ruvector-onnx-embeddings-wasm tracked in ADR-121 Phase 4). Browser package does not invoke the vulnerable code path. Re-audit when ADR-121 Phase 4 lands or expires."
"rationale": "Direct dep agentic-flow@2.0.11 still pulls in @xenova/transformers in its direct dependencies. Upstream has not yet shipped a Xenova-free version (3.0.0-alpha.2 still depends on it). The browser package does not invoke any embedding code paths. Re-audit when ADR-121 Phase 4 lands or when agentic-flow ships a clean release. Transitive chain (agentdb → @opentelemetry/sdk-node) was eliminated by bumping agentdb to 3.0.0-alpha.14 + overrides; only the @xenova/transformers chain remains."
}
],
"lockfile": [
+1223 -4278
View File
File diff suppressed because it is too large. Load diff
+10 -3
View File
@@ -71,8 +71,8 @@
"@ruvector/router": "^0.1.30",
"@ruvector/router-linux-x64-gnu": "^0.1.30",
"@ruvector/sona": "^0.1.5",
"agentdb": "^3.0.0-alpha.9",
"agentic-flow": "^2.0.7"
"agentdb": "^3.0.0-alpha.14",
"agentic-flow": "^2.0.11"
},
"overrides": {
"hono": ">=4.11.4",
@@ -92,7 +92,14 @@
"uuid": ">=14.0.0",
"@opentelemetry/core": "1.25.1",
"@opentelemetry/resources": "1.25.1",
"@opentelemetry/sdk-trace-base": "1.25.1"
"@opentelemetry/sdk-trace-base": "1.25.1",
"@opentelemetry/sdk-node": ">=0.218.0",
"@opentelemetry/auto-instrumentations-node": ">=0.75.0",
"@opentelemetry/exporter-prometheus": ">=0.217.0",
"axios": ">=1.13.2",
"fast-uri": ">=3.1.0",
"vite": ">=6.4.6",
"ws": ">=8.18.4"
},
"devDependencies": {
"@openai/codex": "^0.98.0",
+8278 -178
View File
File diff suppressed because it is too large. Load diff
+26 -1
View File
@@ -23,9 +23,34 @@
},
"dependencies": {
"agent-browser": "^0.27.0",
"agentic-flow": "^2.0.3",
"agentic-flow": "^2.0.11",
"zod": "^3.22.4"
},
"overrides": {
"@opentelemetry/sdk-node": ">=0.218.0",
"@opentelemetry/auto-instrumentations-node": ">=0.75.0",
"@opentelemetry/exporter-prometheus": ">=0.217.0",
"@opentelemetry/core": "1.25.1",
"@opentelemetry/resources": "1.25.1",
"@opentelemetry/sdk-trace-base": "1.25.1",
"axios": ">=1.13.2",
"fast-uri": ">=3.1.0",
"hono": ">=4.11.4",
"@hono/node-server": ">=1.19.10",
"path-to-regexp": ">=8.2.1",
"undici": ">=7.18.0",
"minimatch": ">=10.0.0",
"@isaacs/brace-expansion": ">=5.0.1",
"picomatch": ">=4.0.3",
"flatted": ">=3.4.0",
"tar": ">=7.5.11",
"cacache": ">=20.0.0",
"make-fetch-happen": ">=15.0.0",
"express-rate-limit": ">=8.4.1",
"protobufjs": ">=7.5.5",
"vite": ">=6.4.6",
"ws": ">=8.18.4"
},
"peerDependencies": {
"@claude-flow/cli": ">=3.5.0"
},
+1 -1
View File
@@ -123,7 +123,7 @@
"@ruvector/ruvllm-wasm": "^2.0.2",
"@ruvector/rvagent-wasm": "^0.1.0",
"@ruvector/sona": "^0.1.6",
"agentdb": "^3.0.0-alpha.13",
"agentdb": "^3.0.0-alpha.14",
"agentic-flow": "^3.0.0-alpha.1"
},
"publishConfig": {
+1 -1
View File
@@ -17,7 +17,7 @@
"prepublishOnly": "npm run build && node -e \"const m = await import('./dist/index.js'); const required = ['ControllerRegistry','HnswLite','PersistentSonaCoordinator','RvfBackend','RvfLearningStore','RvfMigrator']; const missing = required.filter(k => !m[k]); if (missing.length) { console.error('Missing exports:', missing); process.exit(1); } console.log('All required exports present');\""
},
"dependencies": {
"agentdb": "^3.0.0-alpha.10",
"agentdb": "^3.0.0-alpha.14",
"sql.js": "^1.10.3"
},
"optionalDependencies": {