Repository navigation
Conversation
|
Any updates on this? |
Author
still waiting on approval from a maintainer :( |
This was referenced Nov 17, 2026
5 tasks
1 task
This was referenced Nov 17, 2026
4 tasks
This was referenced Nov 17, 2026
This was referenced Nov 17, 2026
6 tasks
|
Both GitHub and VulnCheck have withdrawn this advisory, as it is not a security issue. If a tool is still reporting you're "vulnerable", then you need to contact the tool author about getting their source updated. |
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.
Repeated single-branch star extglobs such as
+(*a)and*(*a)still compile to nested unbounded quantifiers onv2/2.3.2. Short non-matching inputs can block the event loop. This affects the 2.x line used by micromatch 4 and downstream file watchers.This is a focused 2.x adaptation of the collapse approach proposed by @seeibt in #237. Existing #237 and #238 target
master; this PR targetsv2.For a single branch consisting of literals and ordinary stars, the branch's star can absorb subsequent repetitions. Remove the redundant outer
+, or replace the outer*with optionality. Thus+(*a)becomes one*abranch and*(*a)becomes an optional*abranch. Exclude quoting, escapes, paths, globstars and other glob/regex syntax from this rewrite.maxExtglobRecursion: falseretains the existing opt-out.Capture mode needs special treatment: collapsing changes the final repeated capture. In that mode, use the existing risky-extglob literal fallback, rather than returning a subtly different capture or retaining the expensive expression. This deliberately changes capture-mode matching for the affected patterns, consistently with the existing safeguard for other risky extglobs.
Regression coverage:
Validation: all 1,976 tests pass on Node 22.16.0 and Bun 1.4.3; ESLint passes for both changed files. Full
npm teststops at three pre-existingspace-before-function-parenerrors in untouchedtest/dotfiles.js(227, 294) andtest/special-characters.js(235).Related: CVE-2026-112366, #234, #239, #237. This handles the simple single-branch star forms in the public report; it is not a claim that arbitrary user-supplied glob/regex syntax is free of all ReDoS risks. No release/version bump is included.