CVE-2020-28480: Jointjs Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-qwp9-52h8-xgg8
CWE-400
Published
Advisory Summary

CVE-2020-28480 is a HIGH prototype pollution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Jointjs libraries in the npm ecosystem. The issue involves prototype pollution in jointjs. Remediation is available by upgrading affected packages to version 3.3.0.

CVE-2020-28480 at a Glance

CVE Identifier CVE-2020-28480
GHSA Identifier GHSA-qwp9-52h8-xgg8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Jointjs
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2020-28480

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

jointjs fixed: 3.3.0
npm install jointjs@3.3.0
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 jointjs

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-28480, inspect your project dependencies using npm:

npm ls jointjs

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

Note: The npm ls jointjs 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 Jointjs, 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

The package jointjs before 3.3.0 are vulnerable to Prototype Pollution via util.setByPath (https://resources.jointjs.com/docs/jointjs/v3.2/joint.htmlutil.setByPath). The path used the access the object's key and set the value is not properly sanitized, leading to a Prototype Pollution.

CVE-2020-28480 Affected Jointjs Versions

1 component(s)
Fixed Versions:
3.3.0
Product / Package Ecosystem Affected Versions Fixed Version
jointjs
npm
< 3.3.0
3.3.0

References

Frequently Asked Questions

What is CVE-2020-28480?
CVE-2020-28480 is a security vulnerability in Jointjs involving Prototype pollution in JointJS under CWE-400: Uncontrolled Resource Consumption.
Which Jointjs versions are affected?
Affected versions include releases prior to 3.3.0 across affected packages: jointjs.
What version fixes CVE-2020-28480?
Upgrading to 3.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jointjs affected?
Yes, jointjs is affected in releases prior to 3.3.0. Upgrade your dependency to 3.3.0 or later.
What CWE is associated with CVE-2020-28480?
CVE-2020-28480 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 CVE-2020-28480?
Run the dependency tree command: 'npm ls jointjs'. 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-qwp9-52h8-xgg8",
  "modified" : "2021-01-20T05:24:47Z",
  "published" : "2021-01-20T21:21:16Z",
  "aliases" : [ "CVE-2020-28480" ],
  "summary" : "Prototype pollution in JointJS",
  "details" : "The package jointjs before 3.3.0 are vulnerable to Prototype Pollution via util.setByPath (https://resources.jointjs.com/docs/jointjs/v3.2/joint.htmlutil.setByPath). The path used the access the object's key and set the value is not properly sanitized, leading to a Prototype Pollution.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "jointjs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-28480"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/clientIO/joint/pull/1406"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/clientIO/joint/blob/master/src/util/util.mjs%23L150"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1062037"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1062036"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-JOINTJS-1024444"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-01-20T05:24:47Z",
    "nvd_published_at" : "2021-01-19T15:15:00Z"
  }
}