Vulnerability identifier: #VU26579
Vulnerability risk: Medium
CVSSv3.1: 4.6 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-399
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
Mocha
Web applications /
JS libraries
Vendor: mochajs.org
Description
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to an error when processing regular expressions. A remote attacker can pass specially crafted data to the script and perform a denial of service attack via regular expression (ReDoS).
Mitigation
Install updates from vendor's website.
Vulnerable software versions
Mocha: 6.0.0 - 7.1.0
External links
http://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-561509
http://github.com/mochajs/mocha/commit/1a43d8b11a64e4e85fe2a61aed91c259bbbac559
http://github.com/mochajs/mocha/pull/3686
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.