Repository navigation
fix: guard emitted repetition in single-branch extglobs - #274
Open
gdmiller-za wants to merge 2 commits into
Open
gdmiller-za wants to merge 2 commits into
gdmiller-za wants to merge 2 commits into
Conversation
lodaq
added a commit
to lodaq/naqra
that referenced
this pull request
Nov 18, 2026
Pin the parser fix proposed in micromatch/picomatch#274 for GHSA-fc5q-39xc-vjpf until a patched npm version is available.
|
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.
Summary
Single-branch repeated extglobs such as
+(*a)and+(*)can emit nested unbounded regex quantifiers that bypass the existing alternation and recursion analysis (GHSA-fc5q-39xc-vjpf).Track emitted repetition on private extglob frames and use the existing literal fallback for repeated wildcard branches, generated negation wildcards, and raw regex plus quantifiers. Carry surviving repetition depth through wrappers, and discard metadata when a child has been literalized. Existing safe character-class rewrites and the explicit
maxExtglobRecursion: falseopt-out remain available.This is a conservative security boundary: some complex nested patterns now match literally. Compatibility tests explicitly cover the new default and the previous behavior with the opt-out; README describes the change. No claim is made that arbitrary user-supplied regex syntax is universally safe.
Validation
npm test: 2,004 passing, including lint.The opt-out is exercised only with short trusted inputs; hostile inputs are always run in a separate bounded process.