GHSA-2xw5-3767-qxvm: Ng ui library Malicious Package Vulnerability
CRITICALGHSA-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.
GHSA-2xw5-3767-qxvm at a Glance
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).
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.
npm install ng-ui-library@1.0.990
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
GHSA-2xw5-3767-qxvm Affected Ng ui library Versions
1 component(s)| 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?
Which Ng ui library versions are affected?
What version fixes GHSA-2xw5-3767-qxvm?
Is ng-ui-library affected?
What is the CVSS score of GHSA-2xw5-3767-qxvm?
What CWE is associated with GHSA-2xw5-3767-qxvm?
How can I check npm dependencies for GHSA-2xw5-3767-qxvm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}