Read the docs
TI-2020-19947 Aliases GHSA-97mg-3cr6-3x4c

Remote Code Execution in mongodb-query-parser

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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.

Why it matters now

Fix Fixed mongodb-query-parser (npm): 2.0.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—mongodb-query-parser (npm)before 2.0.02.0.0Patch availableGHSA-97mg-3cr6-3x4c
  • mongodb-query-parser (npm) Vendor— Affected before 2.0.0 Fixed in 2.0.0 Patch available GHSA-97mg-3cr6-3x4c

Remediation

  • Fix · GHSA-97mg-3cr6-3x4c mongodb-query-parser (npm) Fixed in 2.0.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-97mg-3cr6-3x4c

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences