Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

minimatch

Latest version: v11.0.10

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: isaacs
3,531 Stars
403 Forks
11 Versions
4.0B Downloads
TypeScript Repo language

Scan summary

minimatch was last scanned on 30 Nov 2026 at version 11.0.10. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 11.0.10.
  • Downloads: 4,032,155,184 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 11.0.10

Findings

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.

Known vulnerabilities

11 CVEs · last 1 Dec 2026

0 CRITICAL 7 HIGH 3 MEDIUM 1 LOW

Versions

  • ≥ 11.0.10
  • ≥ 11.0.8, < 11.0.10 1 LOW
  • ≥ 11.0.7, < 11.0.8 2 MEDIUM 1 LOW
  • ≥ 11.0.6, < 11.0.7 1 HIGH 2 MEDIUM 1 LOW
  • ≥ 11.0.3, < 11.0.6 1 HIGH 2 MEDIUM
  • ≥ 11.0.1, < 11.0.3 1 HIGH 1 MEDIUM
  • ≥ 11.0.0, < 11.0.1 1 HIGH 2 MEDIUM
  • ≥ 10.2.3, < 11.0.0 2 MEDIUM
  • ≥ 10.2.1, < 10.2.3 2 HIGH 2 MEDIUM
  • ≥ 10.0.0, < 10.2.1 3 HIGH 2 MEDIUM
Show all 35 version ranges
  • ≥ 9.0.7, < 10.0.0 2 MEDIUM
  • ≥ 9.0.6, < 9.0.7 2 HIGH 2 MEDIUM
  • ≥ 9.0.0, < 9.0.6 3 HIGH 2 MEDIUM
  • ≥ 8.0.6, < 9.0.0 2 MEDIUM
  • ≥ 8.0.5, < 8.0.6 2 HIGH 2 MEDIUM
  • ≥ 8.0.0, < 8.0.5 3 HIGH 2 MEDIUM
  • ≥ 7.4.8, < 8.0.0 2 MEDIUM
  • ≥ 7.4.7, < 7.4.8 2 HIGH 2 MEDIUM
  • ≥ 7.4.0, < 7.4.7 3 HIGH 2 MEDIUM
  • ≥ 7.0.0, < 7.4.0 3 HIGH 1 MEDIUM
  • ≥ 6.2.2, < 7.0.0
  • ≥ 6.2.1, < 6.2.2 2 HIGH
  • ≥ 6.0.0, < 6.2.1 3 HIGH
  • ≥ 5.1.8, < 6.0.0
  • ≥ 5.1.7, < 5.1.8 2 HIGH
  • ≥ 5.0.0, < 5.1.7 3 HIGH
  • ≥ 4.2.5, < 5.0.0
  • ≥ 4.2.4, < 4.2.5 2 HIGH
  • ≥ 4.0.0, < 4.2.4 3 HIGH
  • ≥ 3.1.4, < 4.0.0
  • ≥ 3.1.3, < 3.1.4 1 HIGH
  • ≥ 3.0.5, < 3.1.3 3 HIGH
  • ≥ 3.0.2, < 3.0.5 4 HIGH
  • > 3.0.1, < 3.0.2 5 HIGH
  • ≤ 3.0.1 6 HIGH

Vulnerabilities

  • CVE-2026-141514 Low 1 Dec 2026 minimatch: minimatch: Security controls bypass via matcher cache poisoning Fixed in 11.0.10
  • CVE-2026-140008 High 30 Nov 2026 minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`) Fixed in 11.0.7
  • CVE-2026-140007 Medium 30 Nov 2026 minimatch is a minimal matching utility for converting glob expression ... Fixed in 11.0.8
  • CVE-2026-140006 Medium 30 Nov 2026 minimatch is a minimal matching utility for converting glob expression ... Fixed in 11.0.8
  • CVE-2026-118764 Medium 29 Oct 2026 minimatch: minimatch: Denial of Service via crafted glob pattern expansion Fixed in 11.0.1
  • CVE-2026-27904 High 26 Feb 2026 minimatch: Minimatch: Denial of Service via catastrophic backtracking in glob expressions Fixed in 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, 3.1.4
  • CVE-2026-27903 High 26 Feb 2026 minimatch: minimatch: Denial of Service due to unbounded recursive backtracking via crafted glob patterns Fixed in 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, 3.1.3
  • CVE-2026-26996 High 20 Feb 2026 minimatch: minimatch: Denial of Service via specially crafted glob patterns Fixed in 10.2.1, 9.0.6, 8.0.5, 7.4.7, 6.2.1, 5.1.7, 4.2.4, 3.1.3
  • CVE-2022-3517 High 17 Oct 2022 nodejs-minimatch: ReDoS via the braceExpand function Fixed in 3.0.5
  • CVE-2016-10540 High 31 May 2018 Minimatch is a minimal matching utility that works by converting glob ... Fixed in 3.0.2
  • NSWG-ECO-118 High No date Regular Expression Denial of Service Fixed in 3.0.2

Seal Security (npm)

Seal Security ships a patched build of this package. Its fixed versions:

  • CVE-2026-118764: 10.2.1-sp999, 10.2.2-sp999, 8.0.4-sp999, 9.0.3-sp999, 9.0.5-sp2, 9.0.6-sp999
  • CVE-2026-140006: 10.2.1-sp999, 10.2.2-sp999, 10.2.4-sp999, 10.2.5-sp2, 8.0.4-sp999, 9.0.3-sp999, 9.0.5-sp999, 9.0.6-sp999, 9.0.9-sp999
  • CVE-2026-26996: 3.0.3-sp2, 3.0.4-sp2
  • CVE-2026-27903: 3.0.3-sp2, 3.0.4-sp2
  • CVE-2026-27904: 3.0.3-sp2, 3.0.4-sp2

README

The publisher’s own README, as collected from the registry.

minimatch

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.

Why Not Regular Expressions?

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.

Important Security Consideration!

[!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.

Usage

// 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!

Features

Supports these glob features:

  • Brace Expansion
  • Extended glob matching
  • "Globstar" ** matching
  • Posix character classes, like [[: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:

Windows

Please 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.

UNC Paths

On Windows, UNC paths like //?/c:/... or //ComputerName/Share/... are handled specially.

  • Patterns starting with a double-slash followed by some non-slash characters will preserve their double-slash. As a result, a pattern like //* will match //x, but not /x.
  • Patterns staring with //?/<drive letter>: will not treat the ? as a wildcard character. Instead, it will be treated as a normal string.
  • Patterns starting with //?/<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.
  • The host and share of a pattern starting with //<host>/<share>/... are compared case-insensitively with those of the file path, if neither has magic. For example, //host/share/* matches //HOST/SHARE/x.
  • Patterns starting with //?/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.

Minimatch Class

Create a minimatch object by instantiating the minimatch.Minimatch class.

import { Minimatch } from 'minimatch'
const mm = new Minimatch(pattern, options)
Properties
  • 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 "".

Methods
  • 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.

minimatch(path, pattern, options)

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.

minimatch.filter(pattern, options)

Returns a function that tests its supplied argument, suitable for use with Array.filter. Example:

const javascripts = fileList.filter(
  minimatch.filter('*.js', { matchBase: true }),
)
minimatch.escape(pattern, options = {})

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.

minimatch.unescape(pattern, options = {})

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.

minimatch.match(list, pattern, options)

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 })

Options

All options are false by default.

nobrace

Do not expand {a,b} and {1..3} brace sets.

noglobstar

Disable ** matching against multiple folder names.

dot

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.

noext

Disable "extglob" style patterns like +(a|b).

nocase

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.

nocaseMagicOnly

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

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.

  • The path is split on / 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.
  • The syntax of the pattern is parsed before it is normalized. So with NFKC, a full width * is a literal, which matches *, and not a wildcard.
  • With 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.

nonull

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.

magicalBraces

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.

matchBase

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.

nocomment

Suppress the behavior of treating # at the start of a pattern as a comment.

nonegate

Suppress the behavior of treating a leading ! character as negation.

flipNegate

Returns from negate expressions the same as if they were not negated. (Ie, true on a hit, false on a miss.)

partial

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
windowsPathsNoEscape

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.

windowsNoMagicRoot

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.

preserveMultipleSlashes

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.

optimizationLevel

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).

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm minimatch

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229