CVE-2024-57186
JavaScript vulnerability analysis and mitigation

Overview

CVE-2024-57186 is a path traversal vulnerability discovered in Erxes versions prior to 1.6.2. The vulnerability affects the /read-file endpoint handler in the core service of Erxes, an open-source experience management solution. The issue was discovered in March 2024 and allows unauthenticated attackers to read arbitrary files from the system (Sonar Blog, NVD).

Technical details

The vulnerability exists in the readFileRequest() function that handles the /read-file endpoint. The function accepts a 'key' parameter from user input without proper validation and uses it to construct filesystem paths. An attacker can exploit this by using relative path traversal sequences (../) to access files outside the intended directory. The vulnerability has been assigned a CVSS v3.1 base score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N (Sonar Blog, NVD).

Impact

The vulnerability allows attackers to read sensitive files from the system, including configuration files and environment variables that may contain authentication secrets and database credentials. In the context of Erxes' microservices architecture, this could lead to exposure of critical system information and potentially enable further attacks (Sonar Blog).

Mitigation and workarounds

The vulnerability has been patched in Erxes version 1.6.2 by implementing proper filename sanitization. Users are strongly recommended to upgrade to version 1.6.2 or later to address this security issue (Erxes Commit).

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-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 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