Vulnerabilities in pkg:npm/ng-ui-library

PACKAGE
Advisory Summary

GHSA-2xw5-3767-qxvm is a CRITICAL (CVSS 9.8) malicious package vulnerability (CWE-506: Embedded Malicious Code) affecting Ng ui library libraries in the npm ecosystem. The issue involves malicious package in ng-ui-library. Remediation is available by upgrading affected packages to version 1.0.990.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/ng-ui-library

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/ng-ui-library. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2xw5-3767-qxvm - CRITICAL Malicious Package in ng-ui-library

GHSA-2xw5-3767-qxvm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2xw5-3767-qxvm
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Ng ui library
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-2xw5-3767-qxvm

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

ng-ui-library fixed: 1.0.990
npm install ng-ui-library@1.0.990
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 ng-ui-library

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-2xw5-3767-qxvm, inspect your project dependencies using npm:

npm ls ng-ui-library

Analyze the terminal output to locate any version of Ng ui library in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.990), your application is affected.

Note: The npm ls ng-ui-library 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-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Ng ui library, 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 1.0.987 of `ng-ui-library` contained malicious code. The code when executed in the browser would enumerate password, cvc and cardnumber fields from forms and send the extracted values to `https://js-metrics.com/minjs.php?pl=` ## Recommendation Remove the package from your environment and evaluate your application to determine whether or not user data was compromised.

GHSA-2xw5-3767-qxvm Affected Ng ui library Versions

1 component(s)
Fixed Versions:
1.0.990
Product / Package Ecosystem Affected Versions Fixed Version
ng-ui-library
npm
≥ 1.0.987
< 1.0.990
All 1 versions
1.0.987
1.0.990

References

Frequently Asked Questions

What is GHSA-2xw5-3767-qxvm?
GHSA-2xw5-3767-qxvm is a security vulnerability in Ng ui library involving Malicious Package in ng-ui-library under CWE-506: Embedded Malicious Code.
Which Ng ui library versions are affected?
Affected versions include releases prior to 1.0.990 across affected packages: ng-ui-library.
What version fixes GHSA-2xw5-3767-qxvm?
Upgrading to 1.0.990 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ng-ui-library affected?
Yes, ng-ui-library is affected in releases prior to 1.0.990. Upgrade your dependency to 1.0.990 or later.
What is the CVSS score of GHSA-2xw5-3767-qxvm?
GHSA-2xw5-3767-qxvm has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-2xw5-3767-qxvm?
GHSA-2xw5-3767-qxvm is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check npm dependencies for GHSA-2xw5-3767-qxvm?
Run the dependency tree command: 'npm ls ng-ui-library'. 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-2xw5-3767-qxvm",
  "modified" : "2021-09-30T22:07:45Z",
  "published" : "2020-09-11T21:21:20Z",
  "aliases" : [ ],
  "summary" : "Malicious Package in ng-ui-library",
  "details" : "Version 1.0.987 of `ng-ui-library` contained malicious code. The code when executed in the browser would enumerate password, cvc and 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 and evaluate your application to determine whether or not user data was compromised.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ng-ui-library"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.987"
      }, {
        "fixed" : "1.0.990"
      } ]
    } ],
    "versions" : [ "1.0.987" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/940"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:41:17Z",
    "nvd_published_at" : null
  }
}