Skip to content

chore(security): patch vulnerable transitive dependencies - #66

Merged
gfazioli merged 1 commit into
masterfrom
chore/security-resolutions
Jul 27, 2026
Merged

gfazioli merged 1 commit into
masterfrom
chore/security-resolutions

Conversation

@gfazioli

@gfazioli gfazioli commented Jul 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

Advisory: 82 → 26 (yarn npm audit --recursive).

Dev-only: the published package declares dependencies: {} (only peers on Mantine/React), so none of these ever reached consumers — repo hygiene, propagated from mantine-base-component.

Two mechanisms:

  • resolutions for packages whose fix sits outside the range their parent allows — notably sharp (via next) and tar (via cacache/node-gyp, one critical).
  • yarn up -R for the multi-major packages (minimatch, js-yaml, picomatch, brace-expansion, braces, glob, svgo), whose fixes are inside the parents' ranges. resolutions cannot express these: it matches a parent's exact descriptor (minimatch@npm:^3.0.4), not a major range, so "minimatch@^3" is silently inert.

Whatever remains is dev-only with no published fix (legacy jest/jsdom chains, ip).

Test plan

  • yarn test
  • yarn build + docgen + docs:build

Summary by CodeRabbit

  • Chores
    • Improved version consistency for supporting components.
    • Added safeguards to ensure more predictable builds and installations.
    • No user-facing features or interface changes were introduced.

Advisory: 82 → 26 (yarn npm audit --recursive). Dev-only: the published
package declares no dependencies, so none of these reached consumers.

resolutions (copied from the template) lift the packages whose fix sits outside
their parent's range — notably sharp (via next) and tar (via cacache/node-gyp).
yarn up -R lifts the multi-major ones (minimatch, js-yaml, picomatch,
brace-expansion, braces, glob, svgo), which resolutions cannot express: it
matches a parent's exact descriptor, not a major range.
@gfazioli
gfazioli merged commit 52f6b54 into master Jul 27, 2026
@gfazioli
gfazioli deleted the chore/security-resolutions branch July 27, 2026 19:31
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 28b76878-3cf9-4a09-b30f-c15f3ffb29b2

📥 Commits

Reviewing files that changed from the base of the PR and between 90915b7 and cbc03be.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • package.json

📝 Walkthrough

Walkthrough

A top-level resolutions object is added to package.json, pinning explicit versions for selected dependencies. No scripts, other configuration, or exported entities are changed.

Changes

Dependency Resolution

Layer / File(s) Summary
Add dependency resolution pins
package.json
Adds explicit resolution entries for selected dependencies, including Babel, Effect, esbuild, Rollup, Sharp, Tar, and WebSocket packages.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/security-resolutions

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.

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