GHSA-5mrr-rgp6-x4gr
CRITICALCommand Injection in marsdb
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.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | marsdb | >= 0.0.0 |
References
- https://github.com/bkimminich/juice-shop/issues/1173 · WEB
- https://www.npmjs.com/advisories/1122 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Sep 2020)