Vulnerability DatabaseGHSA-97mg-3cr6-3x4c

GHSA-97mg-3cr6-3x4c
JavaScript vulnerability analysis and mitigation

Overview

A critical Remote Code Execution (RCE) vulnerability was identified in mongodb-query-parser versions prior to 2.0.0. The vulnerability was discovered and reviewed on August 31, 2020, published to the GitHub Advisory Database on September 4, 2020, and last updated on January 9, 2023. This security issue affects the mongodb-query-parser npm package (GitHub Advisory, NPM Advisory).

Technical details

The vulnerability stems from the package's failure to properly sanitize queries, which allows attackers to execute arbitrary code in the system. A proof-of-concept exploit demonstrates that parsing a specially crafted payload can execute system commands, such as '(function () { return (clearImmediate.constructor("return process;")()).mainModule.require("child_process").execSync("touch test-file").toString()})()'. The vulnerability has been assigned a Critical severity rating (GitHub Advisory).

Impact

The vulnerability allows attackers to execute arbitrary code on the affected system, potentially leading to complete system compromise. This could result in unauthorized access, data theft, or system manipulation (GitHub Advisory).

Exploitability

A proof-of-concept exploit exists and has been publicly documented, demonstrating the ability to execute system commands through specially crafted queries. The vulnerability can be triggered by parsing malicious input that leverages the package's query parsing functionality (GitHub Advisory).

Mitigation and workarounds

Users are strongly recommended to upgrade to mongodb-query-parser version 2.0.0 or later, which contains patches for this vulnerability. This is currently the only known mitigation strategy (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73421CRITICAL9.1
  • JavaScript logoJavaScript
  • next-auth
NoYesAug 13, 2026
CVE-2026-73420CRITICAL9.1
  • JavaScript logoJavaScript
  • next-auth
NoYesAug 13, 2026
CVE-2026-73305HIGH8.8
  • JavaScript logoJavaScript
  • @budibase/server
NoNoAug 13, 2026
CVE-2026-73408HIGH7.6
  • JavaScript logoJavaScript
  • @budibase/server
NoNoAug 13, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • action_text-trix
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management