VDB
Sign up
HIGH7.7

GHSA-3hw5-q855-g6cw

Prototype Pollution in Dojox

Quick fix

GHSA-3hw5-q855-g6cw — dojox: upgrade to the fixed version with the command below.

npm install dojox@1.11.10

Details

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]; } ```

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/dojox
Introduced in: 0Fixed in: 1.11.10
Fixnpm install dojox@1.11.10
npm/dojox
Introduced in: 1.12.0Fixed in: 1.12.8
Fixnpm install dojox@1.12.8
npm/dojox
Introduced in: 1.13.0Fixed in: 1.13.7
Fixnpm install dojox@1.13.7
npm/dojox
Introduced in: 1.14.0Fixed in: 1.14.6
Fixnpm install dojox@1.14.6
npm/dojox
Introduced in: 1.15.0Fixed in: 1.15.3
Fixnpm install dojox@1.15.3
npm/dojox
Introduced in: 1.16.0Fixed in: 1.16.2
Fixnpm install dojox@1.16.2

References