GHSA-gm9g-2g8v-fvxj: Upmerge Prototype Pollution Vulnerability

MODERATE
CVSS 7.5
CWE-400 CWE-345
Published
Advisory Summary

GHSA-gm9g-2g8v-fvxj is a MODERATE (CVSS 7.5) prototype pollution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Upmerge libraries in the npm ecosystem. The issue involves prototype pollution in upmerge. Remediation is available in the latest vendor maintenance releases.

GHSA-gm9g-2g8v-fvxj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gm9g-2g8v-fvxj
Severity MODERATE
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Upmerge
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/I:H/A:N).

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 None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-gm9g-2g8v-fvxj

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

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

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-gm9g-2g8v-fvxj, inspect your project dependencies using npm:

npm ls upmerge

Analyze the terminal output to locate any version of Upmerge 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 upmerge 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Upmerge, 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

All versions of `upmerge` are vulnerable to Prototype Pollution. The merge() function fails to prevent user input to alter an Object's prototype, allowing attackers to modify override properties of all objects in the application. This may lead to Denial of Service or may be chained with other vulnerabilities leading to Remote Code Execution. ## Recommendation No fix is currently available. Consider using an alternative module until a fix is made available.

GHSA-gm9g-2g8v-fvxj Affected Upmerge Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
upmerge
npm
≤ 0.1.8

References

Frequently Asked Questions

What is GHSA-gm9g-2g8v-fvxj?
GHSA-gm9g-2g8v-fvxj is a security vulnerability in Upmerge involving Prototype Pollution in upmerge under CWE-400: Uncontrolled Resource Consumption.
Which Upmerge versions are affected?
Affected versions include releases prior to current release patches across affected packages: upmerge.
What version fixes GHSA-gm9g-2g8v-fvxj?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is upmerge affected?
Yes, upmerge is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-gm9g-2g8v-fvxj?
GHSA-gm9g-2g8v-fvxj has a CVSS v3.1 base score of 7.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-gm9g-2g8v-fvxj?
GHSA-gm9g-2g8v-fvxj is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for GHSA-gm9g-2g8v-fvxj?
Run the dependency tree command: 'npm ls upmerge'. 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-gm9g-2g8v-fvxj",
  "modified" : "2021-09-16T20:59:20Z",
  "published" : "2019-06-06T15:32:28Z",
  "aliases" : [ ],
  "summary" : "Prototype Pollution in upmerge",
  "details" : "All versions of `upmerge` are vulnerable to Prototype Pollution. The merge() function fails to prevent user input to alter an Object's prototype, allowing attackers to modify override properties of all objects in the application. This may lead to Denial of Service or may be chained with other vulnerabilities leading to Remote Code Execution.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "upmerge"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.1.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/439120"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jazzfog/UpMerge"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-UPMERGE-174133"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/809"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345", "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-06-06T10:04:57Z",
    "nvd_published_at" : null
  }
}