GitHub Advisoryadvisory · npm
GHSA-5mrr-rgp6-x4gr Command Injection in marsdb
CRITICAL
Official page ↗
- Ecosystem
- npm
- Packages
- marsdb
- Severity
- Critical
- Weaknesses
- CWE-77
- Reviewed
- 2020-08-31
Affected packages
• npm marsdb: >= 0.0.0 (no fix yet)
Description
All versions of `marsdb` are vulnerable to Command Injection. In the `DocumentMatcher` class, selectors on `$where` clauses are passed to a Function constructor unsanitized. This allows attackers to run arbitrary commands in the system when the function is executed.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Related
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness