logo

GHSA-97mg-3cr6-3x4c mongodb-query-parser

Package

Manager: npm
Name: mongodb-query-parser
Vulnerable Version: >=0 <2.0.0

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:U/RC:C

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

Remote Code Execution in mongodb-query-parser Versions of `mongodb-query-parser` prior to 2.0.0 are vulnerable to Remote Code Execution. The package fails to sanitize queries, allowing attackers to execute arbitrary code in the system. Parsing the following payload executes `touch test-file`: ```'(function () { return (clearImmediate.constructor("return process;")()).mainModule.require("child_process").execSync("touch test-file").toString()})()'``` ## Recommendation Upgrade to version 2.0.0 or later.

Metadata

Created: 2020-09-04T17:27:23Z
Modified: 2020-08-31T18:59:39Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-97mg-3cr6-3x4c/GHSA-97mg-3cr6-3x4c.json
CWE IDs: []
Alternative ID: N/A
Finding: F404
Auto approve: 1