Skip to content

fix(deps): update desktop parsers for security and bounded resource use - #19361

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/neil-dep-updates
Sep 8, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/neil-dep-updates

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​56 $\color{#cf222e}{\Huge{\mathbf{−}}}$​54 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2

Ready for review, with baseline golden-test failures disclosed. Final evidence and unchanged-base comparison: 75,654 tests pass; Linux/Windows packaging passes. Both extra golden failure modes reproduce on unchanged dependencies.

ELI5

Update a small set of dependencies with documented security, performance and correctness fixes. Keep incompatible migrations and native runtime changes out of this update group.

What Changed / Why

Dependency review — 2026-09-07

Reviewed the desktop, cloud, mobile and docs-site manifests and lockfiles against npm metadata, audit advisories and upstream release notes/source comparisons. Installed versions can differ from manifest ranges; the versions below are lockfile versions. The docs site must be audited with pnpm --ignore-workspace audit from docs/site to avoid accidentally auditing the desktop workspace.

Desktop updates selected

These are transitive updates within their parents' existing ranges. Direct dependencies, native binaries, local patches, package-manager version and remote protocol remain unchanged. No new override forces an incompatible dependency major.

Dependency Locked change Concrete benefit and upstream evidence Compatibility assessment
qs 6.15.2 → 6.16.0 Changelog: fixes bracket/comma array-limit bypass and attacker-controlled non-callable isBuffer; the intervening release makes compaction O(n). Used through Express/body-parser in the MCP SDK. Same major and accepted parent range; ordinary nested queries and adversarial array-limit/constructor cases checked. The new stringify depth option defaults to Infinity, preserving the default. Malformed/over-limit input intentionally changes behavior.
fast-uri 3.1.5 → 3.1.7 Source comparison: fixes host/scheme/IPv6 canonicalization confusion, reserved-character corruption and URI validation. Stays on the 3.x backport line consumed by Ajv. Includes the follow-up unterminated-bracket compatibility repair after 3.1.6. Checked reserved path characters and IPv6 equivalence. No claim that Orca directly exposes an SSRF endpoint.
@xmldom/xmldom 0.8.13 → 0.8.15 Changelog: XML-name injection checks and linear-time/memory parsing improvements for hostile documents. Stays on the 0.8 LTS line used by plist/Electron packaging. Ordinary plist round-trip and invalid entity-name rejection checked. Well-formed document behavior is preserved; malformed names are deliberately rejected/reported more strictly.
postcss-selector-parser 7.1.1 → 7.1.6 Changelog: bounds recursive AST work and fixes quadratic flat-selector parsing; repairs malformed selectors and namespace whitespace. Build/scaffolding dependency through shadcn, same major. Includes 7.1.4's serialization follow-up instead of stopping at the first security fix. Checked selector round-trip and malformed input.
browserslist 4.28.2 → 4.28.9 Source comparison: bounds query caching, prevents unsafe stats writes, improves query parsing and correctly compares Electron multi-digit minor versions. Build-time Babel/shadcn dependency, same major. Explicit Electron range query and production build pass. Updated browser data can legitimately change selected compilation targets.
nanoid 3.3.17 → 3.3.18 Source comparison: completes the zero/negative-size custom-generator fix in the native entry point. Stays on CommonJS-compatible 3.x; does not migrate to 6.x. PostCSS calls the normal positive-size generator, so this is defense in depth rather than a demonstrated Orca exploit. Zero-size Node smoke check passes; the native entry fix was source-reviewed, not device-tested.

Required companion resolutions from the selected parents:

Dependency Locked change Reason and risk
baseline-browser-mapping 2.10.27 → 2.11.21 Browserslist's updated baseline dataset/range. Browser target data can change; production build passed.
caniuse-lite 1.0.30001791 → 1.0.30001810 Browserslist's browser support dataset; same package line.
electron-to-chromium 1.5.351 → 1.5.422 Browserslist's Electron version mapping, needed for current Electron query correctness.
node-releases 2.0.38 → 2.0.54 Browserslist's Node release dataset; same major.
update-browserslist-db 1.2.3 → 1.3.2 Browserslist's declared updater dependency. No updater command or external data refresh is added to Orca runtime.
side-channel 1.1.0 → 1.1.1 qs 6.16.0's declared dependency; retains existing map/weak-map API. qs also uses the already-locked es-define-property 1.0.1 for safe own-property assignment.

Verification

Executed on macOS arm64, Node 26.6.0, pnpm 12.0.0, with ORCA_BACKGROUND_LAUNCH=1 for installs/builds/tests:

  • Frozen-lockfile install with lifecycle scripts disabled; native dependencies were not changed.
  • pnpm tc: passed.
  • pnpm run build:electron-vite: passed, including renderer boot-graph validation. Existing large-chunk warnings remain.
  • Targeted Vitest run: src/main/claude, both Linear MCP issue-list suites, src/shared/mcp-config.test.ts, and src/main/runtime/rpc/schemas.test.ts: 734 passed, 5 skipped, 1 failed across 83 files.
  • The failure is claude-structured-real-cli.test.ts:177, where the locally installed Claude CLI omits the current effort setting. Reinstalled the original lockfile and reran that file: the identical assertion fails (4 pass, 1 fail). Restored and reinstalled the updated lockfile afterwards.
  • Eleven direct smoke assertions passed for query parsing/limits, hostile constructors, URI reserved characters/IPv6, CSS selectors, plist/XML, Electron target queries and zero-length IDs.
  • Desktop audit: 12 findings → 1 (Tiptap, below). Audit counts describe known advisories, not proof of exploitability or complete security.
  • Reviewed the final lockfile package delta; discarded unrelated resolver churn, including optional bundled Claude CLI entries. Existing ignored optional-dependency policy and patch hashes remain intact.

No rendered interaction, Linux/Windows packaging, native mobile, or live SSH validation was performed. Desktop declares Node 24; CI must cover that supported runtime. These changes do not alter host execution ownership, Git commands, folder/worktree assumptions, wire frames or provider-specific behavior.

Deliberate holds and remaining work

This review does not claim every available upgrade is useful or safe. The desktop is already recent: React 19.2.8, Electron 43.4.1, ws 8.21.3, DOMPurify 3.4.13, PDF.js 6.3.289 and Zod 4.5.4 are already selected. Keep patched xterm, node-pty, Windows process-tree and lint-staged versions until their local patches are reconciled with upstream. Electron 44, Vitest 5, Vite 8, marked 18, Linear SDK 89 and icon-library major migrations do not belong in this security patch group without product-specific evidence and migration testing.

  • Tiptap: high-priority separate editor change. 3.30.4 fixes prototype mutation, 3.30.5 fixes Markdown attribute CPU exhaustion, 3.30.6 improves nested-list serialization and React node-view overhead, and 3.31.2 raises ProseMirror View for a paste-XSS fix. Release notes. Do not bump only @tiptap/core: the coordinated extensions currently span 3.22.4/3.22.5. 3.30 changes Tab/list behavior and 3.31 changes node-view selection semantics. Validate table editing, pasted HTML, Markdown round trips, node views and remote file saves together before selecting a coordinated version. The required Electron skill was not available in either installed skill directory, so rendered editor validation was not performed. The remaining audit finding is intentionally disclosed, not suppressed.
  • Cloud: separate PR selects Hono 4.13.7, its 1.x Node adapter 1.19.17, ws 8.21.3, PostCSS 8.5.28 and nanoid 3.3.18. See that PR's focused review and full cloud verification.
  • Mobile: audit reports five findings: image-size 1.2.1 (two, no patched version offered), decode-uri-component 0.2.2 (requires a 0.5.x migration), and xmldom 0.8.13/0.9.10. The xmldom maintenance updates 0.8.15/0.9.12 are good follow-up candidates, but must be checked through Expo config/plist consumers in the separate workspace. Do not force image-size 2.x or an Expo 57/React Native 0.87 migration to quiet the audit; React Native and WebView have local patches and the native package set is coupled. Reanimated/worklets/screens/storage majors/minors require native-device coverage. Zod 4.4→4.5 also warrants mixed-client validation before changing shared parsing behavior.
  • Docs site: independent audit reports 21 findings, largely from development/deployment tooling: the explicit @vercel/node>undici: 5.29.0 override is on an unfixed major; other findings include Ajv, smol-toml, path-to-regexp and brace-expansion. Research the Vercel parent upgrade/override removal together on the declared Node 22 runtime instead of forcing Undici 6 into a 5.x consumer. The small same-major parser fixes are follow-up candidates for that independent install/build. Do not mistake the desktop audit for this site's audit. React 19.2.4 is older than desktop, but a client React bump alone does not establish Next.js/RSC security.

Terraform provider and Ruby lockfiles were located but not audited by the npm advisory service. Their release/security status is outside the validated npm update groups here. Further native/editor/deployment changes should have separate PRs and corresponding platform/build checks; there is no zero-regression guarantee from semver or a clean audit.

Linked Issue

User-requested dependency review; no existing issue linked.

Visual Proof

N/A — dependency lockfile/manifest maintenance; no UI implementation changes.

Testing

See the command outcomes and explicit limitations above. Existing integration tests and direct API smoke checks were used; no implementation-mirroring tests were added.

Review

  • Self-reviewed each resolved package delta and upstream fixes.
  • Cross-platform and SSH/remote compatibility considered.
  • No upstream skill-installer code or assets copied (agent skill upstream boundary is not applicable).
  • Supported-platform and database-backed CI complete.

@OrcaWin

OrcaWin commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Validation update for 3a6615c:

  • PR CI passed: 75,654 tests passed, 423 skipped across eight Node 24 shards; types/static checks, Git contracts, cross-version wire compatibility and Linux/Windows packaging. Linux packaging verified 18 native binaries against the glibc floor.
  • Local typecheck/build passed; 734 targeted tests passed. The separate real Claude effort-handshake failure reproduced on the unchanged baseline and is not hidden as a dependency pass.
  • Additional golden E2E attempt 1: Linux and macOS passed. Windows failed golden-worktree-create-switch because New Terminal expected one tab but observed two. Original trace artifact.
  • Unchanged-base control, explicitly checking out d0506bf5de0da490025d94c6507378be75194a60, reproduced the same expected-1/received-2 assertion on macOS. Its Windows job independently failed a PTY readiness timeout in golden-terminal-file-link. The helper samples the initial tab count before the new workspace's default terminal has necessarily hydrated, explaining the extra tab.
  • One repeat of the failed Windows job is running on the unchanged PR commit. No source or test assertions were relaxed. Both the initial failure and the control remain linked here so a green repeat cannot conceal the flake.

Security rationale and individual advisory/release links remain in the PR body. Audit findings fell 12 → 1; the remaining Tiptap advisory is handled by the separately blocked editor migration, not an unsafe override.

@OrcaWin

OrcaWin commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Ready for review with disclosed baseline E2E failures, unchanged dependency commit 3a6615cb4c9000165566e5ce67b2aa8166cfa160.

The single Windows golden repeat failed at golden-terminal-file-link.spec.ts:267, PTY readiness marker timeout, exactly the failure seen in the Windows unchanged-base control. It passed the worktree test that failed on the first attempt. The first attempt's expected-1/received-2 tab failure was reproduced by the macOS unchanged-base control.

Run Linux macOS Windows
Dependency candidate, attempt 1 Passed Passed Worktree tab-count assertion failed
Unchanged base d0506bf5de Passed Same worktree tab-count assertion failed File-link PTY readiness timeout
Candidate Windows repeat Not repeated Not repeated Same file-link PTY readiness timeout

Thus the extra golden validation is not fully green, and no further repeats are being used to manufacture a pass. Both distinct observed failures reproduce on the unchanged base; the candidate has no demonstrated new failure in these comparisons. The complete PR checks remain green, including 75,654 passing tests, types, static checks, wire/Git contracts and Linux/Windows packaging. Together with the focused parser checks and narrowly reviewed dependency delta, this supports reviewing/merging the patch group while tracking the existing golden harness problems separately. No test or application source was changed.

@OrcaWin
OrcaWin marked this pull request as ready for review September 7, 2026 22:57
@OrcaWin

OrcaWin commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Additional combined-candidate validation (local, macOS arm64): merged #19361, #19369, #19377, #19378, #19362, #19380 and #19382 into local commit a610eca2303d94ad02199240c0d3afc11bc1757f. Blocked Tiptap #19376 is excluded. This supplements each PR's own exact-commit tests; it does not replace pending CI.

  • Combined frozen-lockfile install, full pnpm tc and pnpm run build:electron-vite: passed.
  • Existing editor + renderer i18n suites: 1,581 passed, 2 skipped; 227 files passed, 1 skipped.
  • 11 parser/query/URI/selector/plist/XML/browser-target/ID assertions: passed.
  • 5 real React Trans rendering/interpolation/language-switch assertions: passed.
  • 6 real headless Chrome sanitizer assertions on the combined installed DOMPurify: passed.
  • Actual combined Electron 43.6.0 / Node 24.20.0: native SQLite read/write, patched PTY spawn/output/exit and filesystem watcher event all passed.

All commands used ORCA_BACKGROUND_LAUNCH=1; no visible app window was opened. The only merge conflict was adjacent package.json entries: resolve by retaining both "dompurify": "3.4.14" and "electron": "43.6.0". Lockfiles merged automatically and the combined frozen install verified consistency. Leaf PR branches remain independent and unchanged; nothing has been merged into main.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ No critical issues — one cosmetic note inline, plus a nitpick below.

Reviewed changes

Lockfile-only bump of transitive parser dependencies (no direct-dep, native-binary, override, or package-manager changes); each version advance picks up a documented security or bounded-resource fix.

  • qs 6.15.2 → 6.16.0 — bracket/comma array-limit bypass and non-callable isBuffer fixes; adds the already-locked [email protected] as a dep (no new package, lockfile lines 4393/10519/10742).
  • fast-uri 3.1.5 → 3.1.7 — host/scheme/IPv6 canonicalization and reserved-character fixes (Ajv consumer).
  • @xmldom/xmldom 0.8.13 → 0.8.15 — XML-name injection checks and linear-time parsing, via plist/Electron packaging.
  • postcss-selector-parser 7.1.1 → 7.1.6 — recursive-AST bounds and quadratic flat-selector fix (shadcn tooling).
  • browserslist 4.28.2 → 4.28.9 plus data companions (baseline-browser-mapping, caniuse-lite, electron-to-chromium, node-releases, update-browserslist-db) — bounding, safer stats writes, Electron multi-digit minor comparison.
  • nanoid 3.3.17 → 3.3.18 — completes the zero/negative-size custom-generator fix, staying on CJS 3.x.

Verified the tabulated changes are consistent with the diff — package manager ([email protected]), lockfileVersion 9.0, and engines.node (24) are all unchanged, and the qs/@xmldom advances were followed through to their runtime consumers (express/body-parser in the MCP SDK; plist in packaging).

ℹ️ Nitpicks

  • [email protected] adds an engines: node >=18 floor that 2.0.38 did not have (pnpm-lock.yaml:5605). Build-time transitive dep only, and desktop declares Node 24 with no .npmrc engine-strict, so no impact — flagged only because it's a new constraint the change table doesn't mention.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Comment thread pnpm-lock.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This bump renames the [email protected] peer key from ([email protected]([email protected])) to ([email protected]) (also at the MCP SDK consumer entries on lines 7743 and 7765), without any version change. The resolved express is still the single 5.2.1([email protected]) copy (line 10871), so this is benign peer-notation renormalization, not a behavioral change. But the PR body says unrelated resolver churn was explicitly discarded while this churn remains in the diff — worth confirming it's intentional (or reverting the key) so the lockfile delta matches the documented change list.

@OrcaWin
OrcaWin merged commit cfd59f2 into main Sep 8, 2026
62 of 66 checks passed
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