CVE-2020-24391
JavaScript vulnerability analysis and mitigation

Overview

Mongo-express before version 1.0.0 contained a critical Remote Code Execution (RCE) vulnerability due to unsafe implementation of advanced syntax support. The vulnerability, tracked as CVE-2020-24391, was discovered in version 0.54.0 and potentially overlaps with CVE-2019-10769 (NVD, GitHub Security Lab).

Technical details

The vulnerability stems from mongo-express's use of safer-eval to validate user-supplied JavaScript. The sandboxing capabilities of safer-eval could be easily bypassed, leading to Remote Code Execution in the context of the node server. The vulnerability received a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (GitHub Security Lab, NVD).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary commands on the system. An attacker with valid user credentials can use this vulnerability to escalate privileges and execute code on the host. The vulnerability can be triggered through the /checkValid endpoint, which processes and executes JavaScript code from form submissions (GitHub Security Lab).

Mitigation and workarounds

The vulnerability was fixed in mongo-express version 1.0.0-alpha.1 by changing the mongo-query-parser to version 2.0, which implements a safer parsing mechanism. Users are advised to upgrade to this version or later to mitigate the vulnerability (Mongo Express Patch).

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-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

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