fix: upgrade minimatch to patched versions to resolve ReDoS vulnerabilities#162
Open
fix: upgrade minimatch to patched versions to resolve ReDoS vulnerabilities#162
Conversation
…lities - Add yarn resolutions to pin minimatch@3.1.5 (was 3.1.2, vulnerable to ReDoS) - Add yarn resolution glob/minimatch@9.0.9 (was 9.0.5, vulnerable to ReDoS) - Preserve @typescript-eslint/typescript-estree/minimatch@10.2.4 (already safe) Fixes Dependabot alerts #58 and #60. Co-authored-by: GitHub Copilot <copilot@noreply.github.com> Agent-Logs-Url: https://github.com/Staffbase/create-staffbase-plugin-nodejs/sessions/66593851-1c94-45c1-9ed5-0a0989a3b489 Co-authored-by: maximizeIT <8626039+maximizeIT@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
maximizeIT
March 29, 2026 07:20
View session
maximizeIT
approved these changes
Mar 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Dependabot security alerts #58 and #60 for minimatch ReDoS vulnerabilities.
Vulnerability Details
Two ReDoS (Regular Expression Denial of Service) vulnerabilities were found in transitive
minimatchdependencies:matchOne())*()extglobs generating catastrophically backtracking regular expressionsBoth are rated High severity and affect development dependencies only.
Root Cause
The
yarn.lockcontained two vulnerable minimatch versions:minimatch@3.1.2(needs ≥ 3.1.4 for full patch coverage) — used byeslint,eslint-plugin-react,jestminimatch@9.0.5(needs ≥ 9.0.7) — used byglobminimatch@10.2.4was already safe (≥ 10.2.3).Fix
Added yarn selective resolutions to
package.json:This upgrades:
minimatch@3.1.2→3.1.5✅ patchedminimatch@9.0.5→9.0.9✅ patchedminimatch@10.2.4preserved as-is ✅ already patchedVerification
yarn test)