Vulnerabilities in pkg:npm/erxes
PACKAGECVE-2024-57186 is a HIGH path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Erxes libraries in the npm ecosystem. The issue involves erxes path traversal vulnerability. Remediation is available by upgrading affected packages to version 1.6.2.
pkg:npm/erxes
Vulnerability advisories affecting package pkg:npm/erxes. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rq9r-qvwg-829q | CVE-2024-57186 | HIGH | Erxes Path Traversal vulnerability |
| GHSA-7rhv-xm4q-wh42 | CVE-2024-57190 | HIGH | Erxes Incorrect Access Control vulnerability |
| GHSA-2977-5php-6789 | CVE-2024-57189 | MODERATE | Erxes Path Traversal vulnerability |
| GHSA-g9ph-r9hc-34r8 | CVE-2021-32853 | MODERATE | Erxes vulnerable to Cross-site Scripting |
CVE-2024-57186 at a Glance
How to Fix CVE-2024-57186
To remediate this vulnerability, upgrade all affected Erxes dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install erxes@1.6.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls erxes
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-57186, inspect your project dependencies using npm:
npm ls erxes
Analyze the terminal output to locate any version of Erxes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.2), your application is affected.
Note: The npm ls erxes command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Erxes, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-57186 Affected Erxes Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
erxes
|
npm |
< 1.6.2
|
1.6.2
|
References
Frequently Asked Questions
What is CVE-2024-57186?
Which Erxes versions are affected?
What version fixes CVE-2024-57186?
Is erxes affected?
What CWE is associated with CVE-2024-57186?
How can I check npm dependencies for CVE-2024-57186?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rq9r-qvwg-829q",
"modified" : "2025-06-10T20:27:01Z",
"published" : "2025-06-10T18:32:27Z",
"aliases" : [ "CVE-2024-57186" ],
"summary" : "Erxes Path Traversal vulnerability",
"details" : "In Erxes <1.6.2, an unauthenticated attacker can read arbitrary files from the system using a Path Traversal vulnerability in the /read-file endpoint handler.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "erxes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.6.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-57186"
}, {
"type" : "WEB",
"url" : "https://github.com/erxes/erxes/commit/d626070a0fcd435ae29e689aca051ccfb440c2f3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/erxes/erxes"
}, {
"type" : "WEB",
"url" : "https://www.sonarsource.com/blog/micro-services-major-headaches-detecting-vulnerabilities-in-erxes-microservices"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-10T20:27:01Z",
"nvd_published_at" : "2025-06-10T17:19:40Z"
}
}