Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. minimatch
  4. ›
  5. GMS-2016-36

GMS-2016-36: Regular Expression Denial of Service

June 20, 2016

The primary function, minimatch(path, pattern) is vulnerable to ReDoS in the pattern parameter. This is because of the regular expression on line of minimatch.js: /((?:\\{2})*)(\\?)\|/g,. The problematic portion of the regex is ((?:\\{2})*) which matches against //.

Code Behaviors & Features

Detect and mitigate GMS-2016-36 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.0.1

Fixed versions

  • 3.0.2

Solution

Upgrade to version 3.0.2 or above.

Source file

npm/minimatch/GMS-2016-36.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.