GHSA-xwg3-gjxh-c8pm: Ngx context menu Malicious Package Vulnerability

CRITICAL
Published
Advisory Summary

GHSA-xwg3-gjxh-c8pm is a CRITICAL malicious package vulnerability (General Security Weakness) affecting Ngx context menu libraries in the npm ecosystem. The issue involves malicious package in ngx-context-menu. Remediation is available in the latest vendor maintenance releases.

GHSA-xwg3-gjxh-c8pm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xwg3-gjxh-c8pm
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Ngx context menu
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-xwg3-gjxh-c8pm

To remediate this vulnerability, upgrade all affected Ngx context menu dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ngx-context-menu fixed: Latest secure release
npm install ngx-context-menu@Latest secure release
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 ngx-context-menu

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-xwg3-gjxh-c8pm, inspect your project dependencies using npm:

npm ls ngx-context-menu

Analyze the terminal output to locate any version of Ngx context menu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls ngx-context-menu 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 General Security Weakness. In Ngx context menu, 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

Version 0.0.26 of `ngx-context-menu` contained malicious code. The code when executed in the browser would enumerate password, cvc, cardnumber fields from forms and send the extracted values to `https://js-metrics.com/minjs.php?pl=` ## Recommendation Remove the package from your environment. It's also recommended to evaluate your application to determine whether or not user data was compromised. Users may consider downgrading to version 0.0.25

GHSA-xwg3-gjxh-c8pm Affected Ngx context menu Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ngx-context-menu
npm
0.0.26
All 1 versions
0.0.26
None specified

References

Frequently Asked Questions

What is GHSA-xwg3-gjxh-c8pm?
GHSA-xwg3-gjxh-c8pm is a security vulnerability in Ngx context menu involving Malicious Package in ngx-context-menu under General Security Weakness.
Which Ngx context menu versions are affected?
Affected versions include releases prior to current release patches across affected packages: ngx-context-menu.
What version fixes GHSA-xwg3-gjxh-c8pm?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ngx-context-menu affected?
Yes, ngx-context-menu is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-xwg3-gjxh-c8pm?
GHSA-xwg3-gjxh-c8pm is classified under General Security Weakness.
How can I check npm dependencies for GHSA-xwg3-gjxh-c8pm?
Run the dependency tree command: 'npm ls ngx-context-menu'. 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-xwg3-gjxh-c8pm",
  "modified" : "2023-07-26T23:58:59Z",
  "published" : "2020-09-03T19:14:32Z",
  "aliases" : [ ],
  "summary" : "Malicious Package in ngx-context-menu",
  "details" : "Version 0.0.26 of `ngx-context-menu` contained malicious code. The code when executed in the browser would enumerate password, cvc, cardnumber fields from forms and send the extracted values to `https://js-metrics.com/minjs.php?pl=`\n\n\n\n## Recommendation\n\nRemove the package from your environment. It's also recommended to evaluate your application to determine whether or not user data was compromised.\n\nUsers may consider downgrading to version 0.0.25",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ngx-context-menu"
    },
    "versions" : [ "0.0.26" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1105"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:47:26Z",
    "nvd_published_at" : null
  }
}