GHSA-3hw5-q855-g6cw
Prototype Pollution in Dojox
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2020-5259
- CVSS_V3
- CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Description
The Dojox jQuery wrapper `jqMix` mixin method is vulnerable to Prototype Pollution. Affected Area: ``` //https://github.com/dojo/dojox/blob/master/jq.js#L442 var tobj = {}; for(var x in props){ // the "tobj" condition avoid copying properties in "props" // inherited from Object.prototype. For example, if obj has a custom // toString() method, don't overwrite it with the toString() method // that props inherited from Object.prototype if((tobj[x] === undefined || tobj[x] != props[x]) && props[x] !== undefined && obj != props[x]){ if(dojo.isObject(obj[x]) && dojo.isObject(props[x])){ if(dojo.isArray(props[x])){ obj[x] = props[x]; }else{ obj[x] = jqMix(obj[x], props[x]); } }else{ obj[x] = props[x]; } ```
Paquets affectés
| Paquet | Versions |
|---|---|
| npm · dojox | introduced 0, fixed 1.11.10 |
| npm · dojox | introduced 1.12.0, fixed 1.12.8 |
| npm · dojox | introduced 1.13.0, fixed 1.13.7 |
| npm · dojox | introduced 1.14.0, fixed 1.14.6 |
| npm · dojox | introduced 1.15.0, fixed 1.15.3 |
| npm · dojox | introduced 1.16.0, fixed 1.16.2 |
Références
- https://github.com/dojo/dojox/security/advisories/GHSA-3hw5-q855-g6cw WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-5259 ADVISORY
- https://github.com/dojo/dojox/commit/47d1b302b5b23d94e875b77b9b9a8c4f5622c9da WEB
- https://lists.debian.org/debian-lts-announce/2020/03/msg00012.html WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |