Skip to content

fix(deps): patch runtime vulnerabilities and update dependencies - #1051

Merged
nixuuu merged 1 commit into
devfrom
chore/audit-dependency-updates
Nov 20, 2026
Merged

nixuuu merged 1 commit into
devfrom
chore/audit-dependency-updates

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Upgrade Bun to 1.4.5 for CI, compiled gateway and worker builds, and Desktop.
  • Upgrade Electron to 45.4.1 and Desktop's local PostgreSQL to 18.7 on all packaged platforms. Document the patched PostgreSQL 17 image for server deployments.
  • Update Expo SDK 58 patches and TypeScript ESLint, align Effect and Protobuf versions across the workspaces, and refresh the verified web and development dependencies.
  • Keep the gateway's database input typed to the common SQL service under Effect 4.1.4.

Security audit

The Expo and TypeScript ESLint dependency paths to vulnerable packages were removed. The audit still reports CVE-2026-118773 and CVE-2026-118764 at moderate severity through the remaining release, packaging and Expo Fingerprint dependencies. Those packages constrain the patched major versions, and npm bundles its own affected copies.

Verification

  • Full CI passed for this revision. All eight shards covered 807 test files with 4,410 passes and 256 conditional skips. Web and Linux builds and native macOS and Windows binary smoke checks also passed. CI run
  • Local x64 binaries and Docker images started with PostgreSQL 17.12. Browser navigation and worker enrollment passed. The opt-in installer tests passed with the real worker binary and an isolated SSH server.
  • Local Linux Desktop AppImage and Debian packages passed the packaged startup and shutdown checks. The 18.6 to 18.7 PostgreSQL upgrade preserved the database, a project and the enrolled worker.
  • Android and iOS Hermes exports, Expo compatibility, Expo Doctor and both native prebuilds passed. The Android release build opened the pairing screen and exercised the camera permission flow on an emulator. Android resolved both Okio modules to 3.16.0. Device-to-gateway pairing is covered by the integration suite. Native iOS build and launch were unavailable locally.
  • The standalone Expo lint diagnostics match the pre-update baseline. The local Codex 0.171.0 test that resumes a thread across providers fails in the same way at the baseline revision.

No release or deployment was performed.

@nixuuu
nixuuu marked this pull request as ready for review November 20, 2026 08:31
@nixuuu
nixuuu merged commit ffcff1f into dev Nov 20, 2026
17 checks passed
@nixuuu
nixuuu deleted the chore/audit-dependency-updates branch November 20, 2026 08:32
nixuuu added a commit that referenced this pull request Nov 20, 2026
## Changes

- Expire old, unpublished events in the contiguous replication prefix
while honoring active leases and the 10,000-record replay window.
Expired clients can recover from source history.
- Deduplicate exact transcript payloads, including tool JSON and diffs.
Preserve full-content replay and reuse the existing content reference
when a large preview needs further trimming.
- Sweep the worker's preview cache hourly and at startup. Keep files
referenced by pending journal events or in-flight writes.
- Cap Electron's HTTP disk cache at 64 MiB. Fix a packaged Desktop
regression where an origin captured by the bundled adapter caused valid
forms to return HTTP 403 in Local or Remote mode. Foreign origins still
receive HTTP 403.
- Recover Codex turns from native archived and Zstandard-compressed
rollouts. Automatic compression remains deferred while import and CLI
rollback support are incomplete.

The PostgreSQL 17 fixture with 600 items used 21.74 MiB across the three
measured relations, down from 26.08 MiB (16.6%). An isolated Electron
run retained 60 MiB after receiving 152 MiB of cacheable data. Both
measurements are from test fixtures.

## Verification

- Ran 460 non-live integration and focused test files on isolated
databases. The first run had 2,880 passes, 12 skips and 13 failures. All
13 failing cases passed on focused reruns after fixture isolation and
link-readiness fixes or when rerun without the parallel load.
- Reran 34 tests for first and subsequent prompts, file and image
delivery to Codex, Claude and Grok stand-ins, linked attachment reads,
and client continuity.
- In a real browser against the test stack, created a thread with a
prompt, TXT and PNG, verified the worker received both files, and
reopened the conversation. Also verified a follow-up with an attachment
and opened the text and image previews.
- Built the Linux x64 Desktop bundle. All five packaged-runtime tests
and the Electron shell smoke passed.
- Targeted typechecks, lint and formatting passed. GitHub CI will run
the repository-wide gates for this revision.

The mobile Connect transport and history tests ran in the integration
suite. The changed form-origin handling and HTTP disk cache are
Electron-specific. Native iOS and Android UI and live provider calls
were outside this local run. No user-facing copy changed.

Refs: #864
Refs: #1051
nixuuu added a commit that referenced this pull request Nov 22, 2026
## Changes

- Pin patched `minimatch` 11.0.9 for `app-builder-lib`,
`@electron/universal`, and `@expo/fingerprint`. Pin Bun 1.4.5 in the EAS
build profiles to read the resulting v3 lockfile.
- Update Effect and its PostgreSQL adapter together, plus Svelte and
SvelteKit, Marked, SemVer and its types, Simple Icons, and
electron-updater.
- Adapt Desktop's download staging to the new electron-updater result
type. Keep the prior installer available when an attempted replacement
fails.

## Security audit

- `bun audit --production --json` reports zero advisories. Installed
copies of `minimatch` were checked for all three override targets.
- The full audit still reports two moderate findings in `npm`, which
`@semantic-release/npm` installs as a release-tool dependency. Current
npm 11 and 12 tarballs bundle affected copies of `glob` and `minimatch`.
Bun can change the displayed lockfile resolution while the files from
the npm tarball remain in place. Canopy's release config uses the GitHub
plugin for publication. Reassess these findings when npm ships patched
bundles.
[CVE-2026-118773](GHSA-3g3m-2fjr-6pw4) ·
[CVE-2026-118764](GHSA-g3hv-75wg-m249)
- Major upgrades, the Claude Agent SDK, and native Expo ecosystem
upgrades are deferred for separate compatibility testing.

Related: #1051

## Verification

- 212 tests across 18 focused files via `check:tmp`, covering real
PostgreSQL, gateway/worker gRPC, BFF, phone and Desktop pairing,
packaged Desktop runtime, updater feed/staging and rollback, Markdown,
and release planning.
- Built the production web bundle, Linux Desktop AppImage and deb
packages, and the final Electron shell. In Chrome, navigated onboarding
and Settings against a disposable gateway and database, then verified
that a changed preference survived reload.
- Generated Android and iOS Expo fingerprints and exported Hermes
bundles for both platforms. Gateway, Desktop, mobile and web type checks
passed. Scoped formatting and lint passed, as did a frozen install and
diff check.
- GitHub CI covers the full repository gate. Native signed updates on
macOS/Windows, native mobile launch, and an EAS cloud build remain
unverified.
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.

1 participant