Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: resolve protobufjs (kokoro-js) and client ws audit CVEs (#1823)
[._.]/ Adam Eivyb98405952a25
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 7b08fcdecf..55b71d8584 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -1,5 +1,6 @@## Security+- **Resolved active `npm audit` CVEs in the kokoro-js → protobufjs chain and the client `ws` transitive** — the server's `[email protected]` pulled `protobufjs <=7.6.0` (GHSA-wcpc-wj8m-hjx6 DoS, GHSA-f38q-mgvj-vph7), and the stale `protobufjs: 7.5.9` override sat *inside* the vulnerable range. Pinned `kokoro-js` to `1.2.0` (the audit-stated fix, still within the code's documented `^1.2.x` compatibility window — `KokoroTTS`/`TextSplitterStream` exports unchanged) and bumped the `protobufjs` override to `7.6.3` in root + `server/package.json`. On the client, `engine.io-client` nested its own `[email protected]` (GHSA-96hv-2xvq-fx4p memory-exhaustion DoS) that the root `ws: 8.21.0` override couldn't reach; added `ws: 8.21.0` to `client/package.json` overrides. Both `npm audit` runs now report 0 vulnerabilities for these chains. (#1823)- **Backup restore/delete path validation hardened** — `subdirFilter` on `POST /api/backup/restore` was an unconstrained string interpolated into an rsync `--include=${subdirFilter}/***` arg, so `*` could override the filter chain (restoring everything over live data) and `../foo` could traverse out of the snapshot subdir; it now validates against a relative path pattern that rejects wildcard, `..`, and absolute-path segments, with a mirrored defense-in-depth guard in `restoreSnapshot` for non-route callers. `deleteBackup` previously validated `filename.replace(/[.]/g,'')` (so the real dotted filename was never checked, leaving only the `startsWith(backupDir)` guard) — it now validates the raw filename directly and explicitly rejects `..`. (#1822)- **Settings API no longer leaks third-party API tokens** — `GET` and `PUT /api/settings` redacted only the top-level `secrets` key, so `imageGen.hfToken` (HuggingFace) and `civitai.apiKey` were returned in full on both initial load and after any save. Both responses now run through a single sanitizer that strips those tokens (sibling config preserved), matching how the Settings UI already reads only token *presence* from the dedicated `/image-gen/setup/hf-token-status` and `/loras/auth/civitai` status routes. On-disk values are untouched. (#1821)- **Vision-test endpoint no longer reads arbitrary files** — `POST /api/providers/:id/test-vision` took `imagePath` straight from the request body, so a `../` traversal or absolute path could have any readable file base64-encoded and forwarded to the configured external vision provider. The image loader now allowlists `imagePath` to a real image basename under `data/screenshots` (via the canonical `resolveScreenshot` path resolver), rejecting traversal and absolute-path escapes before any file is read or forwarded. (#1820)diff --git a/client/package.json b/client/package.jsonindex f89fb1a090..0de54a4af2 100644--- a/client/package.json+++ b/client/package.json@@ -49,6 +49,7 @@"overrides": {"brace-expansion": "5.0.5","socket.io-parser": "4.2.6",+ "ws": "8.21.0","minimatch@3": {"brace-expansion": "1.1.15"},diff --git a/package.json b/package.jsonindex 83194c0718..f9288edfbc 100644--- a/package.json+++ b/package.json@@ -46,7 +46,7 @@"brace-expansion": "5.0.5","js-yaml": "4.2.0","socket.io-parser": "4.2.6",- "protobufjs": "7.5.9",+ "protobufjs": "7.6.3","@protobufjs/utf8": "1.1.1","ws": "8.21.0","ip-address": "10.2.0",diff --git a/server/package.json b/server/package.jsonindex 325885cafd..0acd3525a2 100644--- a/server/package.json+++ b/server/package.json@@ -19,7 +19,7 @@"@googleapis/gmail": "^17.0.0","express": "5.2.1","google-auth-library": "^10.7.0",- "kokoro-js": "1.2.1",+ "kokoro-js": "1.2.0","node-pty": "1.2.0-beta.10","pdf-lib": "^1.17.1","pg": "8.22.0",@@ -43,7 +43,7 @@"js-yaml": "4.2.0","qs": "6.15.2","socket.io-parser": "4.2.6",- "protobufjs": "7.5.9",+ "protobufjs": "7.6.3","@protobufjs/utf8": "1.1.1","ws": "8.21.0","ip-address": "10.2.0",