Repository navigation
Conversation
|
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.
Problem
+(*a)and similar repeated extglobs put an unbounded wildcard inside an unbounded repeat.analyzeRepeatedExtglobdoes not reject these single-branch shapes, so a short near-miss can block the event loop. This targets the public GHSA-fc5q-39xc-vjpf / CVE-2026-112366 advisory.Proposed mitigation
Detect wildcard stars in the extglob body and use the existing literal fallback for repeated
+()/*()groups. The scan skips escaped, quoted and bracketed stars, and leaves*(...)syntax to the existing nested-extglob analysis. The new guard remains active withmaxExtglobRecursion: false; that option keeps its existing behavior for the other recursion/alternation guards.Related proposals include #269 and #270. This is a conservative literal-fallback alternative, rather than a claim of a new issue or a semantics-preserving collapse. Maintainer feedback on the compatibility policy is welcome.
Compatibility
Wildcard-containing repeated groups now match their syntax literally, including
+(*)c,*(a*|b)and the repeated group in*/*(W*, *)*. Four existing test groups are updated explicitly for this change; literal-parenthesis examples also test the bracket-escaped equivalent. Ordinary globs, fixed alternatives, non-repeated extglobs and escaped/quoted/bracketed stars retain their behavior. The README explains the guard and its relationship to the recursion option.This is a mitigation for repeated wildcard stars, not a general guarantee against every regex ambiguity supported by the parser.
Validation
ETIMEDOUTafter 5 seconds.git diff --checkpasses.No version bump or lockfile change is included.