CVE-2024-57190: Erxes Erxes Incorrect Access Control Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-7rhv-xm4q-wh42
CWE-284 CWE-287
Published
Advisory Summary

CVE-2024-57190 is a HIGH erxes incorrect access control vulnerability vulnerability (CWE-284: Improper Access Control) affecting Erxes libraries in the npm ecosystem. The issue involves erxes incorrect access control vulnerability. Remediation is available by upgrading affected packages to version 1.6.1.

CVE-2024-57190 at a Glance

CVE Identifier CVE-2024-57190
GHSA Identifier GHSA-7rhv-xm4q-wh42
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-284: Improper Access Control
Affected Product Erxes
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2024-57190

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.

erxes fixed: 1.6.1
npm install erxes@1.6.1
Verify Direct and Transitive Dependencies

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-57190, 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.1), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. 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

Erxes <1.6.1 is vulnerable to Incorrect Access Control. An attacker can bypass authentication by providing a "User" HTTP header that contains any user, allowing them to talk to any GraphQL endpoint.

CVE-2024-57190 Affected Erxes Versions

1 component(s)
Fixed Versions:
1.6.1
Product / Package Ecosystem Affected Versions Fixed Version
erxes
npm
< 1.6.1
1.6.1

References

Frequently Asked Questions

What is CVE-2024-57190?
CVE-2024-57190 is a security vulnerability in Erxes involving Erxes Incorrect Access Control vulnerability under CWE-284: Improper Access Control.
Which Erxes versions are affected?
Affected versions include releases prior to 1.6.1 across affected packages: erxes.
What version fixes CVE-2024-57190?
Upgrading to 1.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is erxes affected?
Yes, erxes is affected in releases prior to 1.6.1. Upgrade your dependency to 1.6.1 or later.
What CWE is associated with CVE-2024-57190?
CVE-2024-57190 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check npm dependencies for CVE-2024-57190?
Run the dependency tree command: 'npm ls erxes'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7rhv-xm4q-wh42",
  "modified" : "2025-06-10T20:26:40Z",
  "published" : "2025-06-10T18:32:27Z",
  "aliases" : [ "CVE-2024-57190" ],
  "summary" : "Erxes Incorrect Access Control vulnerability",
  "details" : "Erxes <1.6.1 is vulnerable to Incorrect Access Control. An attacker can bypass authentication by providing a \"User\" HTTP header that contains any user, allowing them to talk to any GraphQL endpoint.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/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.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-57190"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/erxes/erxes/commit/4ed2ca797241d2ba0c9083feeadd9755c1310ce8"
  }, {
    "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-284", "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-10T20:26:40Z",
    "nvd_published_at" : "2025-06-10T17:20:38Z"
  }
}