{"id":"GHSA-5mrr-rgp6-x4gr","aliases":[],"status":"published","title":"Command Injection in marsdb","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-77"],"published":"2020-09-03T19:39:05Z","modified":"2023-01-09T05:03:48Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"marsdb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"marsdb","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://github.com/bkimminich/juice-shop/issues/1173","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1122","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5mrr-rgp6-x4gr"}],"sources":{"ghsa":[{"id":"GHSA-5mrr-rgp6-x4gr","title":"Command Injection in marsdb","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-03T19:39:05Z","modified":"2023-01-09T05:03:48Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:36:06.317379Z"}],"osv":[{"id":"GHSA-5mrr-rgp6-x4gr","title":"Command Injection in marsdb","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-03T19:39:05Z","modified":"2020-08-31T18:48:01Z","cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:38.553953Z"}]}}
