Skip to content

Comments

[GHSA-3ppc-4f35-3m26] minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern#7024

Open
jacobwilliams-psycle wants to merge 1 commit intojacobwilliams-psycle/advisory-improvement-7024from
jacobwilliams-psycle-GHSA-3ppc-4f35-3m26
Open

[GHSA-3ppc-4f35-3m26] minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern#7024
jacobwilliams-psycle wants to merge 1 commit intojacobwilliams-psycle/advisory-improvement-7024from
jacobwilliams-psycle-GHSA-3ppc-4f35-3m26

Conversation

@jacobwilliams-psycle
Copy link

Updates

  • Affected products

Comments
As seen in the commits for each of the legacy version, this has been patched for versions 3-9 as well as for the main version of 10.
e.g. the v5 branch contains the following commit - isaacs/minimatch@febe85d

Copilot AI review requested due to automatic review settings February 23, 2026 14:49
@github
Copy link
Collaborator

github commented Feb 23, 2026

Hi there @isaacs! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.

This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@github-actions github-actions bot changed the base branch from main to jacobwilliams-psycle/advisory-improvement-7024 February 23, 2026 14:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GHSA advisory metadata for minimatch to reflect patched versions across legacy major branches.

Changes:

  • Expanded the affected entries to list additional fixed versions (3.x–9.x).
  • Updated the advisory modified timestamp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +46 to +52
{
"introduced": "0"
},
{
"fixed": "9.0.6"
}
]
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

Using "introduced": "0" for each major-line fix range makes the ranges overlap and produces incorrect semantics (e.g., if the vulnerability is “introduced at 0 and fixed in 3.1.3”, then later versions like 9.0.0 would already be considered fixed, contradicting the additional “fixed in 9.0.6” range). Model each maintained major line as a non-overlapping introduced→fixed interval (e.g., introduced 3.0.0 fixed 3.1.3, introduced 4.0.0 fixed 4.2.4, etc.), or otherwise encode explicit re-introductions if that’s truly the case.

Copilot uses AI. Check for mistakes.
Comment on lines +65 to +71
{
"introduced": "0"
},
{
"fixed": "8.0.5"
}
]
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

Using "introduced": "0" for each major-line fix range makes the ranges overlap and produces incorrect semantics (e.g., if the vulnerability is “introduced at 0 and fixed in 3.1.3”, then later versions like 9.0.0 would already be considered fixed, contradicting the additional “fixed in 9.0.6” range). Model each maintained major line as a non-overlapping introduced→fixed interval (e.g., introduced 3.0.0 fixed 3.1.3, introduced 4.0.0 fixed 4.2.4, etc.), or otherwise encode explicit re-introductions if that’s truly the case.

Copilot uses AI. Check for mistakes.
Comment on lines +84 to +90
{
"introduced": "0"
},
{
"fixed": "7.4.7"
}
]
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

Using "introduced": "0" for each major-line fix range makes the ranges overlap and produces incorrect semantics (e.g., if the vulnerability is “introduced at 0 and fixed in 3.1.3”, then later versions like 9.0.0 would already be considered fixed, contradicting the additional “fixed in 9.0.6” range). Model each maintained major line as a non-overlapping introduced→fixed interval (e.g., introduced 3.0.0 fixed 3.1.3, introduced 4.0.0 fixed 4.2.4, etc.), or otherwise encode explicit re-introductions if that’s truly the case.

Copilot uses AI. Check for mistakes.
Comment on lines +36 to +45
},
{
"package": {
"ecosystem": "npm",
"name": "minimatch"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

The affected array now contains multiple separate objects for the same package (npm/minimatch) with identical structure. Consider consolidating these into a single affected entry with multiple ranges to reduce duplication and make future edits less error-prone (especially since the ranges are tightly related and should be kept consistent).

Copilot uses AI. Check for mistakes.
@timbru31
Copy link

Duplicate of #7002 (nope there is no way to see the list of open PRs when suggesting an improvement...)

@isaacs
Copy link

isaacs commented Feb 23, 2026

Duplicate of #7002 (nope there is no way to see the list of open PRs when suggesting an improvement...)

Indeed, RIP my inbox 🫠

image

@isaacs
Copy link

isaacs commented Feb 23, 2026

(To be clear, I love that everyone wants to help out, but like... OMG lol)

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.

4 participants