GHSA-5mrr-rgp6-x4gr

Suggest an improvement
Source
https://github.com/advisories/GHSA-5mrr-rgp6-x4gr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-5mrr-rgp6-x4gr/GHSA-5mrr-rgp6-x4gr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5mrr-rgp6-x4gr
Published
2020-09-03T19:39:05Z
Modified
2020-08-31T18:48:01Z
Summary
Command Injection in marsdb
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-77"
    ],
    "github_reviewed_at": "2020-08-31T18:48:01Z",
    "github_reviewed": true,
    "severity": "CRITICAL",
    "nvd_published_at": null
}
References

Affected packages

npm / marsdb

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-5mrr-rgp6-x4gr/GHSA-5mrr-rgp6-x4gr.json"