Skip to content

fix: resolve minimatch high severity vulnerabilities in CLI#10944

Closed
github-actions[bot] wants to merge 1 commit intomainfrom
fix/minimatch-vulnerability
Closed

fix: resolve minimatch high severity vulnerabilities in CLI#10944
github-actions[bot] wants to merge 1 commit intomainfrom
fix/minimatch-vulnerability

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 1, 2026

Summary

This PR fixes three high severity security vulnerabilities in the minimatch dependency.

Vulnerabilities Fixed

Vulnerability Severity Description
SNYK-JS-MINIMATCH-15309438 High Regular Expression Denial of Service (ReDoS)
SNYK-JS-MINIMATCH-15353387 High Regular Expression Denial of Service (ReDoS)
SNYK-JS-MINIMATCH-15353389 High Inefficient Algorithmic Complexity

Root Cause

The vulnerable minimatch@9.0.5 was introduced as a transitive dependency through:

@sentry/profiling-node > @sentry/node > minimatch@9.0.5

Solution

Added an npm overrides section in package.json to force @sentry/node to use minimatch@^9.0.7, which contains fixes for all three vulnerabilities.

Verification

After applying the fix, running npx snyk test confirms that all high severity vulnerabilities are resolved:

  • Before: 8 issues found (3 high severity security vulnerabilities)
  • After: 5 issues found (all medium severity license issues, no security vulnerabilities)

Generated with Continue


Continue Tasks: ❌ 7 failed — View all


Summary by cubic

Fixes three high-severity minimatch vulnerabilities (ReDoS/algorithmic complexity) in the CLI by forcing minimatch@9 to a patched version via npm override. Snyk now reports no security vulnerabilities.

  • Dependencies
    • Added overrides to pin minimatch@9 to ^9.0.7 across transitive deps (introduced via @sentry/profiling-node > @sentry/node); lockfile resolves to 9.0.9.

Written for commit 12215bb. Summary will update on new commits.

@github-actions github-actions bot requested a review from a team as a code owner March 1, 2026 09:10
@github-actions github-actions bot requested review from RomneyDa and removed request for a team March 1, 2026 09:10
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 1, 2026
@github-actions github-actions bot force-pushed the fix/minimatch-vulnerability branch from eddf857 to 9518fe5 Compare March 4, 2026 09:16
Add npm override for minimatch@9 to use ^9.0.7, which fixes:
- SNYK-JS-MINIMATCH-15309438: Regular Expression Denial of Service (ReDoS)
- SNYK-JS-MINIMATCH-15353387: Regular Expression Denial of Service (ReDoS)
- SNYK-JS-MINIMATCH-15353389: Inefficient Algorithmic Complexity

These vulnerabilities were introduced by @sentry/profiling-node > @sentry/node > minimatch@9.0.5

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
@github-actions github-actions bot force-pushed the fix/minimatch-vulnerability branch from 9518fe5 to 12215bb Compare March 7, 2026 09:10
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Mar 9, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 9, 2026
@RomneyDa RomneyDa closed this Mar 9, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Mar 9, 2026
@RomneyDa RomneyDa reopened this Mar 9, 2026
@github-project-automation github-project-automation bot moved this from Done to In Progress in Issues and PRs Mar 9, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2026
@RomneyDa
Copy link
Collaborator

RomneyDa commented Mar 9, 2026

duplicate of #11057

@RomneyDa RomneyDa closed this Mar 9, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Mar 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

continue-agent lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant