Show vulnerabilities with patch / with exploit

Regular expression DoS in MochaJS Mocha



Published: 2020-04-04
Severity 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 Advisory

This security advisory describes one medium risk vulnerability.

1) Resource management error

Severity: Medium

CVSSv3: 4.6 [CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C] [PCI]

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, 6.0.1, 6.0.2, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 7.0.0, 7.0.1, 7.1.0

CPE External links

https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-561509
https://github.com/mochajs/mocha/commit/1a43d8b11a64e4e85fe2a61aed91c259bbbac559
https://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.



ImmuniWeb® AI Platform for Application Security Testing