Skip to content

chore(deps): update dependencies and fix audit findings - #239

Merged
goniszewski merged 2 commits into
developfrom
chore/dependency-security-updates
Nov 4, 2026
Merged

goniszewski merged 2 commits into
developfrom
chore/dependency-security-updates

Conversation

@goniszewski

Copy link
Copy Markdown
Owner

Summary

Dependency and security update across the frontend and daemon.

Daemon (bun audit: 22 findings incl. 1 critical, 8 high -> 0)

  • Update in-range deps: MCP SDK 1.32.2, hono 4.13.16, aws-sdk-client-s3, sqlite-vec 0.1.9, zod 4.6.7.
  • Several pinned overrides were themselves vulnerable. Bump fast-uri, ip-address, body-parser, qs and @hono/node-server.
  • Add a proxy-addr 2.0.8 override (critical IP-spoofing advisory GHSA-jqcg-44mw-7w3h).
  • Fix 4 existing tsc errors from TS 5.9 Uint8Array<ArrayBufferLike> typing (backup/package.ts, bookmark-media.test.ts). Type-only, no behavior change.

Frontend (npm audit: 21 findings incl. 3 high -> 12 moderate, dev-only)

  • npm audit fix and in-range updates (vite 6.4.5, react-query 5.105, radix, eslint 9.39, typescript 5.9).
  • Remove the unused zod dependency (nothing imports it) instead of migrating to zod 4.
  • Pin postcss-selector-parser to 6.1.5 via overrides.
  • Tags.tsx: call deleteTag(id) explicitly. react-query >= 5.91 passes an extra context argument to mutationFn.
  • Tests: await async elements in Settings.test.tsx and TagDetail.test.tsx; react-query >= 5.91 resolves slightly later and the synchronous getBy* calls raced.

Review notes

  • @hono/node-server override moves 1.x -> 2.1.6. The MCP SDK declares ^1.19.9 || ^2.0.5; the daemon suite passes, but worth a glance.
  • Remaining 12 moderate findings are minimatch in the eslint / typescript-eslint chain (lint-time only). The only fix is a major eslint 10 upgrade, which is out of scope here.
  • Not included: React 19, TS 7, Vite 8, Tailwind 4, zod 4 (frontend), vitest 5, lucide-react 1.x and other majors.

Verification

  • npm run lint: 0 errors
  • npm run type-check: frontend and daemon clean
  • npm test: 358/358; daemon bun test: 720/720
  • npm run build and npm run docs:api:check: pass
  • bun audit: no vulnerabilities

- daemon: update in-range deps (MCP SDK 1.32, hono 4.13.16, aws-sdk,
  sqlite-vec, zod) and bump pinned overrides that were themselves
  vulnerable (fast-uri, ip-address, body-parser, qs, @hono/node-server);
  add proxy-addr 2.0.8 override (critical IP spoofing advisory)
- frontend: npm audit fix + in-range updates (vite 6.4.5, react-query,
  radix, eslint 9.39, typescript 5.9); remove unused zod; pin
  postcss-selector-parser to 6.1.5
- fix daemon type errors from TS 5.9 Uint8Array<ArrayBufferLike> typing
- Tags: call deleteTag explicitly, react-query now passes a second
  mutationFn argument
- tests: await async elements in Settings and TagDetail tests
Copilot AI balanced review requested due to automatic review settings November 4, 2026 10:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T10:46:48.606672Z 4c2b799 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4c2b7990a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
Comment on lines +139 to +140
"overrides": {
"postcss-selector-parser": "6.1.5"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Regenerate the frontend Bun lockfile for the dependency changes

The root bun.lock still includes the removed zod dependency and has no postcss-selector-parser override, so it no longer matches this manifest. Both the frontend lockfile gate in .github/workflows/quality.yml and the builder install in Dockerfile use bun install --frozen-lockfile; Bun's help defines that flag as “Disallow changes to lockfile.” Updating only package-lock.json therefore leaves CI and Docker builds unable to reconcile the new dependency configuration. Regenerate and commit the root Bun lockfile alongside the npm lockfile.

Useful? React with 👍 / 👎.

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@goniszewski
goniszewski merged commit 17b2b88 into develop Nov 4, 2026
9 checks passed
@goniszewski
goniszewski deleted the chore/dependency-security-updates branch November 4, 2026 11:28
@goniszewski goniszewski mentioned this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants