CVE-2020-28480: Jointjs Prototype Pollution Vulnerability
HIGHCVE-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
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.
npm install jointjs@3.3.0
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
CVE-2020-28480 Affected Jointjs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jointjs
|
npm |
< 3.3.0
|
3.3.0
|
References
Frequently Asked Questions
What is CVE-2020-28480?
Which Jointjs versions are affected?
What version fixes CVE-2020-28480?
Is jointjs affected?
What CWE is associated with CVE-2020-28480?
How can I check npm dependencies for CVE-2020-28480?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}