Regular expression DoS in MochaJS Mocha



Published: 2020-04-04
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID N/A
CWE-ID CWE-399
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Mocha
Web applications / JS libraries

Vendor mochajs.org

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Resource management error

EUVDB-ID: #VU26579

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: N/A

CWE-ID: CWE-399 - Resource Management Errors

Exploit availability: No

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


Q & A

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.



###SIDEBAR###