Vulnerability library
Security checkJanuary 09, 2023

Command Injection in marsdb

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmmarsdb

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 available yet. Followings are affected versions:

  • >= 0.0.0

References

Could your website be exposed too?

SmartScanner can check your website for Command Injection in marsdb and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023