Last tested: 31 Jul, 2018

glob vulnerabilities

a little globber

View on npm

glob (latest)

Published 13 Apr, 2018

Known vulnerabilities0
Vulnerable paths0

No known vulnerabilities in glob

Security wise, glob seems to be a safe package to use.
Over time, new vulnerabilities may be disclosed on glob and other packages. To easily find, fix and prevent such vulnerabilties, protect your repos with Snyk!

Vulnerable versions of glob

Fixed in 5.0.15

Regular Expression Denial of Service (DoS)

high severity

Detailed paths

  • Introduced through: glob@5.0.14 > minimatch@2.0.10


minimatch is a minimalistic matching library used for converting glob expressions into JavaScript RegExp objects. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Many Regular Expression implementations may reach edge cases that causes them to work very slowly (exponentially related to input size), allowing an attacker to exploit this and can cause the program to enter these extreme situations by using a specially crafted input and cause the service to excessively consume CPU, resulting in a Denial of Service.

An attacker can provide a long value to the minimatch function, which nearly matches the pattern being matched. This will cause the regular expression matching to take a long time, all the while occupying the event loop and preventing it from processing other requests and making the server unavailable (a Denial of Service attack).

You can read more about Regular Expression Denial of Service (ReDoS) on our blog.


Upgrade minimatch to version 3.0.2 or greater.