Skip to content

fix: remediate dependency security advisories across workspaces - #31681

Merged
nwparker merged 2 commits into
mainfrom
nwparker/dependency-security-fixes
Oct 21, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/dependency-security-fixes

Conversation

@nwparker

@nwparker nwparker commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​108 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​107
Prod 26 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​591 $\color{#cf222e}{\Huge{\mathbf{−}}}$​324 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​267

ELI5

Upgrade vulnerable dependencies across Orca's five pnpm workspaces and patch three packages that have no published fix. Deeply nested brace patterns now fail safely, excessive numeric precision stays bounded, and RSA verification rejects malformed nested algorithm data.

What Changed

  • Use fixed Hono, Markdown-it, Vite, Vitest, and path-to-regexp releases; regenerate lockfiles with pnpm.
  • Apply temporary braces, sprintf-js, and node-forge patches through pnpm, including mobile's standalone copies. Keep both sprintf entry points protected and preserve zero-precision formatting.
  • Run security regressions against the installed workspace dependencies without temporary pnpm installs or registry access. Exercise deep brace/parenthesis patterns, direct ASTs, extreme precision, and signed RSA DigestInfo values with and without NULL parameters.
  • Keep the isolated audit-tool install and stale-lock verification working with its new patch.

Why

These advisories affect product dependencies and build tooling. Published updates are preferred; narrow local patches cover the remaining unfixed versions. Patch removal conditions and advisory IDs are documented in config/patches/dependency-security.md.

Registry audits still report the original braces, sprintf-js, and node-forge versions. This PR does not suppress those findings or claim a clean raw audit. Cloud's audit is clean; the other remaining reports name only these patched packages. Release-policy tooling remains a separate change.

Visual Proof

N/A — dependency and parser/verifier changes have no intended visual or interaction changes.

Testing

  • Tested locally on macOS arm64 with background-launch policy enabled.
  • Follow-up: 22 focused desktop/mobile security and audit-runner tests, mobile test typecheck ratchet, formatting, and changed-code quality passed. No dependencies added.
  • Initial implementation: 20 patch/frozen-install/audit-runner tests; 68 targeted mobile tests; 16 docs tests.
  • Cloud non-relay suites: 550 passed; relay's isolated project: 12 passed; floating-promise census rerun: 2 passed.
  • Cloud build, docs production build, all five frozen installs, locked-audit-tools integration, changed-code quality, and diff whitespace checks outside patch-file context lines.
  • Broad mobile and relay runs were interrupted after failures during heavy parallel execution. Named assertion failures passed with fewer workers, and a representative terminal suite collected and passed. A complete broad-suite pass is still for CI. Linux, Windows, native mobile builds and the full desktop suite were not run locally.

Review

  • No upstream skill-installer code involved.
  • Self-reviewed patch behavior, standalone mobile patch paths, and cross-platform process invocation.
  • Remote/client protocol unchanged. No release, deployment, or license exceptions included.

@nwparker
nwparker requested a review from Jinwoo-H as a code owner October 21, 2026 22:56
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 94c2dc6e-7f35-47fb-a6ce-1be10c45c49c
📥 Commits

Reviewing files that changed from the base of the PR and between 7df3ff7 and 3bcfadb.

⛔ Files ignored due to path filters: 5
  • cloud/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • config/audit-tools/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • docs/site/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 24
  • cloud/apps/push/package.json
  • cloud/apps/relay-fence-broker/package.json
  • cloud/apps/relay-ops/package.json
  • cloud/apps/relay/package.json
  • cloud/package.json
  • cloud/packages/postgres-schema/package.json
  • cloud/packages/push-contract/package.json
  • cloud/packages/relay-contract/package.json
  • cloud/pnpm-workspace.yaml
  • config/audit-tools/pnpm-workspace.yaml
  • config/patches/[email protected]
  • config/patches/dependency-security.md
  • config/patches/[email protected]
  • config/scripts/dependency-security-patches.test.mjs
  • config/scripts/run-audit-tool.test.mjs
  • config/scripts/verify-locked-audit-tools.mjs
  • docs/site/pnpm-workspace.yaml
  • mobile/package.json
  • mobile/patches/[email protected]
  • mobile/patches/[email protected]
  • mobile/patches/[email protected]
  • mobile/pnpm-workspace.yaml
  • mobile/scripts/dependency-security-patches.test.ts
  • pnpm-workspace.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 5f50b95 into main Oct 21, 2026
67 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