Skip to content

Upgrade minimatch dependency to >=9.0.7#12

Merged
yosriady merged 2 commits into
mainfrom
claude/fix-minimatch-redos-TtRKB
Apr 10, 2026
Merged

Upgrade minimatch dependency to >=9.0.7#12
yosriady merged 2 commits into
mainfrom
claude/fix-minimatch-redos-TtRKB

Conversation

@yosriady
Copy link
Copy Markdown
Collaborator

@yosriady yosriady commented Apr 10, 2026

Summary

Updated the minimatch package override in package.json to enforce a minimum version of 9.0.7, ensuring all transitive dependencies use a secure and compatible version of minimatch.

Changes

  • Added minimatch version override constraint (>=9.0.7) to the overrides section in package.json

Details

This change adds an explicit version constraint for the minimatch package to the npm overrides configuration. This ensures that minimatch and any packages that depend on it will use version 9.0.7 or higher, helping to maintain consistency and security across the dependency tree.

https://claude.ai/code/session_01WabQxr14viqjrwzwJB2m4W


Open with Devin

Add minimatch override (>=9.0.7) to enforce patched versions and prevent
resolution to versions vulnerable to catastrophic backtracking via
repeated wildcards or nested extglobs.

https://claude.ai/code/session_01WabQxr14viqjrwzwJB2m4W
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a version override for the minimatch package in package.json. Feedback highlights the need to update the package-lock.json file to maintain dependency synchronization and suggests refining the version range for minimatch to prevent potential breaking changes from future major releases.

Comment thread package.json Outdated
"test-exclude": "^8.0.0",
"brace-expansion": "^5.0.5"
"brace-expansion": "^5.0.5",
"minimatch": ">=9.0.7"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The package-lock.json file was not updated in this pull request. When modifying dependencies or overrides in package.json, you must run npm install to synchronize the lockfile and include those changes in the commit. This ensures that all environments and CI/CD pipelines use the same dependency tree and respect the new constraints.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lockfile was already in sync — npm install was run, but the resolved versions (9.0.9 and 10.2.4) already satisfied the override constraint, so npm correctly made no lockfile changes. The lockfile already pins to patched versions.


Generated by Claude Code

Comment thread package.json Outdated
"test-exclude": "^8.0.0",
"brace-expansion": "^5.0.5"
"brace-expansion": "^5.0.5",
"minimatch": ">=9.0.7"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The version range ">=9.0.7" is unbounded and allows future major versions (e.g., 11.0.0) which may introduce breaking changes. It is safer to use a range that covers the required security fix while staying within known compatible major versions to prevent unexpected build failures in the future.

Suggested change
"minimatch": ">=9.0.7"
"minimatch": "^9.0.7 || ^10.0.0"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point on bounding the range. Updated to ^9.0.7 || ^10.2.3 in 7d8f2be. Note: used ^10.2.3 instead of ^10.0.0 because 10.0.0–10.2.2 are still vulnerable to CVE-2026-27904 (nested extglob ReDoS).


Generated by Claude Code

Constrain the override to known compatible major versions to prevent
future breaking changes, while ensuring both 9.x and 10.x resolve to
versions patched for CVE-2026-26996 and CVE-2026-27904.

https://claude.ai/code/session_01WabQxr14viqjrwzwJB2m4W
@yosriady yosriady merged commit 0274a0d into main Apr 10, 2026
5 checks passed
@yosriady yosriady deleted the claude/fix-minimatch-redos-TtRKB branch April 10, 2026 04:57
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.

2 participants