Skip to content

fix(deps): resolve production security audit findings - #2077

Draft
Eli Bosley (elibosley) wants to merge 1 commit into
mainfrom
fix/security-dependency-audit
Draft

fix(deps): resolve production security audit findings#2077
Eli Bosley (elibosley) wants to merge 1 commit into
mainfrom
fix/security-dependency-audit

Conversation

@elibosley

Copy link
Copy Markdown
Member

Summary

Update production dependencies to clear the security audit: 31 advisories before the change, zero afterward, with no added audit exclusions.

Why This Exists

Work intent: resolve the failed dependency audit found while reviewing the path-traversal fix. This PR is independent of that fix and targets the dependency findings in the failing audit run.

Resolution

Update Fastify, Undici, and DOMPurify in their workspace manifests. Update the existing security overrides and add scoped overrides for vulnerable transitive versions. Refresh the Tiptap package family together in the lockfile so its exact-version peers remain aligned.

Reviewer Considerations

  • Update nested NestJS Fastify as well as the direct API dependency.
  • Keep Undici versions aligned across the API and shared/Connect workspace peer declarations.
  • Supply Tiptap's required y-tiptap 3.0.7 peer explicitly in the web package.
  • Upgrade Stylus to 0.64.0 to remove its vulnerable decode-uri-component dependency chain. Overriding the decoder directly would force an ESM package into an older CommonJS caller.
  • Preserve the audit command and its existing exclusions unchanged.

Implementation Summary

Patched versions include Fastify 5.12.1, Undici 7.29.0, DOMPurify 3.4.13, fast-uri 3.1.6, PostCSS 8.5.23, qs 6.16.0, tar 7.5.21, js-yaml 4.3.1, find-my-way 9.7.0, ip-address 10.3.1, nanoid 3.3.18, and the supported brace-expansion release lines. Tiptap resolves to 3.31.3.

Verification

Node 22.18.0 and pnpm 10.15.0:

  • pnpm run audit --prod: zero advisories, down from 17 high and 14 moderate.
  • API and web type-check: passed.
  • API, web, and UI library build: passed.
  • TZ=UTC pnpm --filter ./web test --maxWorkers=4 --minWorkers=1: 672 passed, 6 skipped.
  • pnpm --filter @unraid/ui test --run --maxWorkers=4 --minWorkers=1: 18 passed.
  • pnpm --filter @unraid/shared test --maxWorkers=2 --minWorkers=1: 197 passed.
  • pnpm --filter unraid-api-plugin-connect test --run --maxWorkers=2 --minWorkers=1: 119 passed.
  • pnpm --filter ./api test --maxWorkers=4 --minWorkers=1: 2,155 passed; the VM suite cannot initialize without native libvirt, and one OIDC integration test times out against localhost:8080. The same OIDC timeout was reproduced with the original dependency tree.
  • git diff --check: passed.

Risk and Limits

Transitive routing, parsing, and editor packages changed. Builds, type checks, and test suites cover compatibility, but local VM integration coverage remains unavailable. No server was deployed, and this PR does not merge or release the updates.

Update vulnerable direct and transitive dependencies without adding audit exclusions. Keep Tiptap peers aligned and replace the vulnerable Stylus decoder chain through its parent.

Work intent: dependency audit follow-up from PR #2076. Production audit now reports zero advisories. API, web, and UI builds and API/web type checks pass.
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 20 minutes.

Check out review usage here.

View limit details

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

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 0da604b4-60ce-48ea-b4bc-6276602fe60a

📥 Commits

Reviewing files that changed from the base of the PR and between 3ec4764 and 78c1d77.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • api/package.json
  • package.json
  • packages/unraid-api-plugin-connect/package.json
  • packages/unraid-shared/package.json
  • unraid-ui/package.json
  • web/package.json

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.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

🚀 Storybook has been deployed to staging: https://unraid-ui-storybook-staging.unraid-workers.workers.dev

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.36%. Comparing base (3ec4764) to head (78c1d77).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2077      +/-   ##
==========================================
+ Coverage   53.33%   53.36%   +0.02%     
==========================================
  Files        1043     1043              
  Lines       72664    72664              
  Branches     8387     8390       +3     
==========================================
+ Hits        38758    38774      +16     
+ Misses      33779    33763      -16     
  Partials      127      127              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This plugin has been deployed to Cloudflare R2 and is available for testing.
Download it at this URL:

https://preview.dl.unraid.net/unraid-api/tag/PR2077/dynamix.unraid.net.plg

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