Skip to content

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

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

chore(security): patch vulnerable transitive dependencies#44
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
    • Updated dependency version resolutions to improve consistency and address compatibility across the application’s tooling and packages.

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 37d04a8 into master Jul 27, 2026
@gfazioli
gfazioli deleted the chore/security-resolutions branch July 27, 2026 19:36
@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: e0bc78cc-e66e-4783-970f-085722d27248

📥 Commits

Reviewing files that changed from the base of the PR and between c8f0981 and 1616abb.

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

📝 Walkthrough

Walkthrough

package.json adds Yarn dependency resolutions that force selected versions for Babel, build tooling, and other packages.

Changes

Dependency resolution overrides

Layer / File(s) Summary
Yarn resolution configuration
package.json
Adds forced version ranges for multiple dependencies through a new resolutions object.

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

✨ 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