Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mocha
  4. ›
  5. GMS-2019-7

GMS-2019-7: Inefficient Regular Expression Complexity

April 1, 2020

mocha is vulnerable to ReDos

References

  • github.com/mochajs/mocha/commit/1a43d8b11a64e4e85fe2a61aed91c259bbbac559

Code Behaviors & Features

Detect and mitigate GMS-2019-7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.0.0

Fixed versions

  • 6.0.0

Solution

Upgrade to version 6.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/mocha/GMS-2019-7.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:29 +0000.