In WordPress through 4.9.2, unauthenticated attackers can cause a denial of service (resource consumption) by using the large list of registered .js files (from wp-includes/script-loader.php) to construct a series of requests to load every file many times.
https://wpvulndb.com/vulnerabilities/9021
https://github.com/WazeHell/CVE-2018-6389