Scan your whole stack
Are you using minimatch?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v11.0.10
minimatch was last scanned on 30 Nov 2026 at version 11.0.10. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 11.0.10 LATEST | 30 Nov 2026 | No rules fired |
| 11.0.9 | 16 Nov 2026 | No rules fired |
| 11.0.8 | 11 Nov 2026 | No rules fired |
| 11.0.7 | 10 Nov 2026 | Not shown |
| 11.0.6 | 10 Nov 2026 | Not shown |
Findings for v11.0.10. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 11.0.10; other versions have their own rules, not their own score.
0 CRITICAL 7 HIGH 3 MEDIUM 1 LOW
Seal Security ships a patched build of this package. Its fixed versions:
The publisher’s own README, as collected from the registry.
A glob matching utility.
This is the matching library used internally by node-glob.
It works by splitting glob expressions on /, and testing each
path portion with a Matcher from
@isaacs/nonrecursive-glob-match.
Regular Expressions are very powerful, and for many applications, extremely fast.
However, in JavaScript, they are subject to
ReDoS
in certain cases. Libraries that assemble Regular Expressions
from arbitrary input are thus vulnerable to patterns that cause
pathological behavior. For example, patterns like
a*a*a*a*a*a*a*a*a*a*a when matched against a string like
'a'.repeat(50) + 'b' would have to repeatedly backtrack through
every failure.
Most other glob matchers in JavaScript (including versions up through v10 of this library) convert the glob pattern to Regular Expressions, and then use that to test the string. This is fine for trusted input, but can fall over badly in cases that cause recursive backtracking.
[!NOTE] The following only applies to v11 and higher of this library. Earlier versions are only supported with a commercial contract, paid in advance per release.
Please be prepared to make arrangements for this service if you ask for backports of security fixes or other improvements. There will be no exceptions.
Though this library is not vulnerable to ReDOS, any library that performs pattern matching based on arbitrary input will potentially have edge cases where it performs suboptimally.
To be extremely clear:
[!WARNING]\ If you create a system where you take user input, and use that input as the source of a pattern matcher, in this or any extant glob matcher in JavaScript, you may be pwned.
The pattern matching library that Minimatch uses in v11 and above cannot be backported to earlier versions. It is a much too deep of a change to do so in a way that is not SemVer major.
// hybrid module, load with require() or import
import { minimatch } from 'minimatch'
// or:
// const { minimatch } = require('minimatch')
minimatch('bar.foo', '*.foo') // true!
minimatch('bar.foo', '*.bar') // false!
minimatch('bar.foo', '*.+(bar|foo)') // true!
Supports these glob features:
** matching[[:alpha:]], supporting the full range of Unicode
characters. For example, [[:alpha:]] will match against
'é', though [a-zA-Z] will not. Collating symbol and set
matching is not supported, so [[=e=]] will not match 'é'
and [[.ch.]] will not match 'ch' in locales where ch is
considered a single character.See:
man shman bash Pattern
Matchingman 3 fnmatchman 5 gitignorePlease only use forward-slashes in glob expressions.
Though windows uses either / or \ as its path separator, only /
characters are used by this glob implementation. You must use
forward-slashes only in glob expressions. Back-slashes in patterns
will always be interpreted as escape characters, not path separators.
Note that \ or / will be interpreted as path separators in paths on
Windows, and will match against / in glob expressions.
So just always use / in patterns.
On Windows, UNC paths like //?/c:/... or
//ComputerName/Share/... are handled specially.
//* will match //x, but not /x.//?/<drive letter>: will not treat
the ? as a wildcard character. Instead, it will be treated
as a normal string.//?/<drive letter>:/... will match
file paths starting with <drive letter>:/..., and vice versa,
as if the //?/ was not present. This behavior only is
present when the drive letters are a case-insensitive match to
one another. The remaining portions of the path/pattern are
compared case sensitively, unless nocase:true is set.//<host>/<share>/... are compared case-insensitively with
those of the file path, if neither has magic. For example,
//host/share/* matches //HOST/SHARE/x.//?/UNC/<host>/<share>/... will match
file paths starting with //<host>/<share>/..., and vice
versa, the same as //?/<drive letter>:. The ? is not a
wildcard character.Note that specifying a UNC path using \ characters as path
separators is always allowed in the file path argument, but only
allowed in the pattern argument when windowsPathsNoEscape: true
is set in the options.
Create a minimatch object by instantiating the minimatch.Minimatch class.
import { Minimatch } from 'minimatch'
const mm = new Minimatch(pattern, options)
pattern The original pattern the minimatch object represents.
options The options supplied to the constructor.
set A 2-dimensional array of Matcher or string expressions.
Each row in the
array corresponds to a brace-expanded pattern. Each item in the row
corresponds to a single path-part. For example, the pattern
{a,b/c}/d would expand to a set of patterns like:
[ [ a, d ]
, [ b, c, d ] ]
If a portion of the pattern doesn't have any "magic" in it
(that is, it's something like "foo" rather than fo*o?), then it
will be left as a string rather than converted to a Matcher.
A numeric range of 100 or more values, such as {0..999}, is
not expanded. It stays in one row, and the Matcher for its
portion tests for a number in the range.
negate True if the pattern is negated.
comment True if the pattern is a comment.
empty True if the pattern is "".
match(fname) Return true if the filename matches the pattern, or
false otherwise.
hasMagic() Returns true if the parsed pattern contains any
magic characters. Returns false if all comparator parts are
string literals. If the magicalBraces option is set on the
constructor, then it will consider brace expansions which are
not otherwise magical to be magic. If not set, then a pattern
like a{b,c}d will return false, because neither abd nor
acd contain any special glob characters.
This does not mean that the pattern string can be used as a
literal filename, as it may contain magic glob characters that
are escaped. For example, the pattern \\* or [*] would not
be considered to have magic, as the matching portion parses to
the literal string '*' and would match a path named '*',
not '\\*' or '[*]'. The minimatch.unescape() method may
be used to remove escape characters.
All other methods are internal, and will be called as necessary.
Main export. Tests a path against the pattern using the options.
const isJS = minimatch(file, '*.js', { matchBase: true })
It keeps at least the 256 Minimatch objects that it used most
recently, so a pattern that it tests again with the same options
is not compiled again. To test many paths against one pattern, a
Minimatch object or minimatch.filter() is still a bit faster.
Returns a function that tests its
supplied argument, suitable for use with Array.filter. Example:
const javascripts = fileList.filter(
minimatch.filter('*.js', { matchBase: true }),
)
Escape all magic characters in a glob pattern, so that it will only ever match literal strings.
If the windowsPathsNoEscape option is used, then characters are
escaped by wrapping in [], because a magic character wrapped in
a character class can only be satisfied by that exact character.
Braces ({ and }) are only escaped if the magicalBraces
option is set. Without it, a brace expansion in the input such as
{a,b} is left as-is, and will be expanded when matching.
A leading ! or # is escaped, so that the result is never a
negated pattern or a comment. In windowsPathsNoEscape mode, a
leading ! is written as @(!), which only matches ! (and
matches nothing if noext is set).
Slashes (and backslashes in windowsPathsNoEscape mode) cannot
be escaped or unescaped.
Un-escape a glob string that may contain some escaped characters.
If the windowsPathsNoEscape option is used, then square-brace
escapes are removed, but not backslash escapes. For example, it
will turn the string '[*]' into *, but it will not turn
'\\*' into '*', because \ is a path separator in
windowsPathsNoEscape mode.
When windowsPathsNoEscape is not set, then both brace escapes
and backslash escapes are removed.
Slashes (and backslashes in windowsPathsNoEscape mode) cannot
be escaped or unescaped.
Match against the list of files, in the style of fnmatch or glob. If nothing is matched, and options.nonull is set, then return a list containing the pattern itself.
const javascripts = minimatch.match(fileList, '*.js', { matchBase: true })
All options are false by default.
Do not expand {a,b} and {1..3} brace sets.
Disable ** matching against multiple folder names.
Allow patterns to match filenames starting with a period, even if the pattern does not explicitly have a period in that spot.
Note that by default, a/**/b will not match a/.d/b, unless dot
is set.
Disable "extglob" style patterns like +(a|b).
Perform a case-insensitive match. Case is folded one code point at a time, with Unicode simple case folding. See Comparisons to other fnmatch/glob implementations.
When used with {nocase: true}, create matchers that
are case-insensitive, but leave string match portions untouched.
Has no effect when used without {nocase: true}.
Useful when some other form of case-insensitive matching is used, or if the original string representation is useful in some other way.
Normalize unicode in the pattern, and in each portion of the tested
path, with this form: 'NFC', 'NFD', 'NFKC', or 'NFKD'. true
means 'NFC'.
A char such as é can be one code point, or e followed by a
combining accent. Some file systems, such as on macOS, can give file
names in the second form. Without this option, the two forms do not
match.
/ before it is normalized. So with NFKC, a
full width / normalizes to /, but it does not split the path.
It is a char in its portion.* is a literal, which matches *, and
not a wildcard.nocase, the strings are normalized, and then case is folded.See @isaacs/nonrecursive-glob-match for how classes and combining marks after wildcards are normalized.
When a match is not found by minimatch.match, return a list containing
the pattern itself if this option is set. When not set, an empty list
is returned if there are no matches.
This only affects the results of the Minimatch.hasMagic method.
If the pattern contains brace expansions, such as a{b,c}d, but
no other magic characters, then the Minimatch.hasMagic() method
will return false by default. When this option set, it will
return true for brace expansion as well as other magic glob
characters.
If set, then patterns without slashes will be matched
against the basename of the path if it contains slashes. For example,
a?b would match the path /xyz/123/acb, but not /xyz/acb/123.
Suppress the behavior of treating # at the start of a pattern as a
comment.
Suppress the behavior of treating a leading ! character as negation.
Returns from negate expressions the same as if they were not negated. (Ie, true on a hit, false on a miss.)
Compare a partial path to a pattern. As long as the parts of the path that are present are not contradicted by the pattern, it will be treated as a match. This is useful in applications where you're walking through a folder structure, and don't yet have the full path, but want to ensure that you do not walk down paths that can never be a match.
For example,
minimatch('/a/b', '/a/*/c/d', { partial: true }) // true, might be /a/b/c/d
minimatch('/a/b', '/**/d', { partial: true }) // true, might be /a/b/.../d
minimatch('/x/y/z', '/a/**/z', { partial: true }) // false, because x !== a
Use \\ as a path separator only, and never as an escape
character. If set, all \\ characters are replaced with / in
the pattern. Note that this makes it impossible to match
against paths containing literal glob pattern characters, but
allows matching with patterns constructed using path.join() and
path.resolve() on Windows platforms, mimicking the (buggy!)
behavior of earlier versions on Windows. Please use with
caution, and be mindful of the caveat about Windows
paths.
For legacy reasons, this is also set if
options.allowWindowsEscape is set to the exact value false.
When a pattern starts with a UNC path or drive letter, and in
nocase:true mode, do not convert the root portions of the
pattern into a case-insensitive matchers, and instead
leave them as strings.
This is the default when the platform is win32 and
nocase:true is set.
By default, multiple / characters (other than the leading //
in a UNC path, see "UNC Paths" above) are treated as a single
/.
That is, a pattern like a///b will match the file path a/b.
Set preserveMultipleSlashes: true to suppress this behavior.
A number indicating the level of optimization that should be done to the pattern prior to parsing and using it for matches.
Globstar parts ** are always converted to * when noglobstar
is set, and multiple adjacent ** parts are converted into a
single ** (ie, a/**/**/b will be treated as a/**/b, as this
is equivalent in all cases).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.