GHSA-236c-vhj4-gfxg: Duplicate Advisory Embedded Malware Vulnerability

HIGH
CVSS 8.8
CWE-829 CWE-912
Published
Advisory Summary

GHSA-236c-vhj4-gfxg is a HIGH (CVSS 8.8) embedded malware vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves embedded malware in ua-parser-js. Remediation is available by upgrading affected packages to version 0.7.30, 0.8.1, 1.0.1.

GHSA-236c-vhj4-gfxg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-236c-vhj4-gfxg
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Duplicate Advisory
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.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:R/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 Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-236c-vhj4-gfxg

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

ua-parser-js fixed: 0.7.30
npm install ua-parser-js@0.7.30
ua-parser-js fixed: 0.8.1
npm install ua-parser-js@0.8.1
ua-parser-js fixed: 1.0.1
npm install ua-parser-js@1.0.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 ua-parser-js

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-236c-vhj4-gfxg, inspect your project dependencies using npm:

npm ls ua-parser-js

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

Note: The npm ls ua-parser-js 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-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Duplicate Advisory, 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

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pjwm-rvh2-c87w. This link is maintained to preserve external references. ### Original Description A vulnerability was found in ua-parser-js 0.7.29/0.8.0/1.0.0. It has been rated as critical. This issue affects the crypto mining component which introduces a backdoor. Upgrading to version 0.7.30, 0.8.1 and 1.0.1 is able to address this issue. It is recommended to upgrade the affected component.

GHSA-236c-vhj4-gfxg Affected Duplicate Advisory Versions

3 component(s)
Fixed Versions:
0.7.300.8.11.0.1
Product / Package Ecosystem Affected Versions Fixed Version
ua-parser-js
npm
≥ 0.7.29
< 0.7.30
All 1 versions
0.7.29
0.7.30
ua-parser-js
npm
≥ 0.8.0
< 0.8.1
All 1 versions
0.8.0
0.8.1
ua-parser-js
npm
≥ 1.0.0
< 1.0.1
All 1 versions
1.0.0
1.0.1

References

Frequently Asked Questions

What is GHSA-236c-vhj4-gfxg?
GHSA-236c-vhj4-gfxg is a security vulnerability in Duplicate Advisory involving Embedded malware in ua-parser-js under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 0.7.30, 0.8.1, 1.0.1 across affected packages: ua-parser-js.
What version fixes GHSA-236c-vhj4-gfxg?
Upgrading to 0.7.30, 0.8.1, 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ua-parser-js affected?
Yes, ua-parser-js is affected in releases prior to 0.7.30, 0.8.1, 1.0.1. Upgrade your dependency to 0.7.30, 0.8.1, 1.0.1 or later.
What is the CVSS score of GHSA-236c-vhj4-gfxg?
GHSA-236c-vhj4-gfxg has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-236c-vhj4-gfxg?
GHSA-236c-vhj4-gfxg is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check npm dependencies for GHSA-236c-vhj4-gfxg?
Run the dependency tree command: 'npm ls ua-parser-js'. 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-236c-vhj4-gfxg",
  "modified" : "2026-02-17T21:40:20Z",
  "published" : "2022-05-25T00:00:31Z",
  "withdrawn" : "2026-02-17T21:40:20Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Embedded malware in ua-parser-js",
  "details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-pjwm-rvh2-c87w. This link is maintained to preserve external references.\n\n### Original Description\nA vulnerability was found in ua-parser-js 0.7.29/0.8.0/1.0.0. It has been rated as critical. This issue affects the crypto mining component which introduces a backdoor. Upgrading to version 0.7.30, 0.8.1 and 1.0.1 is able to address this issue. It is recommended to upgrade the affected component.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ua-parser-js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.7.29"
      }, {
        "fixed" : "0.7.30"
      } ]
    } ],
    "versions" : [ "0.7.29" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ua-parser-js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.8.0"
      }, {
        "fixed" : "0.8.1"
      } ]
    } ],
    "versions" : [ "0.8.0" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ua-parser-js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ],
    "versions" : [ "1.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4229"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/faisalman/ua-parser-js/issues/536"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-pjwm-rvh2-c87w"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.185453"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-829", "CWE-912" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-17T21:40:20Z",
    "nvd_published_at" : "2022-05-24T16:15:00Z"
  }
}