Advisory

GHSA-3hw5-q855-g6cw

Also known as: CVE-2020-5259

Summary

Prototype Pollution in Dojox

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

Severity

Low Basis: The source's own band: LOW

Dates

Published
2020-03-10 18:03 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

dojox

npm · All systems

Affected

  • introduced 0, fixed 1.11.10 (semver)

Fixed versions

1.11.10

Fix

dojox

npm · All systems

Affected

  • introduced 1.12.0, fixed 1.12.8 (semver)

Fixed versions

1.12.8

Fix

dojox

npm · All systems

Affected

  • introduced 1.13.0, fixed 1.13.7 (semver)

Fixed versions

1.13.7

Fix

dojox

npm · All systems

Affected

  • introduced 1.14.0, fixed 1.14.6 (semver)

Fixed versions

1.14.6

Fix

dojox

npm · All systems

Affected

  • introduced 1.15.0, fixed 1.15.3 (semver)

Fixed versions

1.15.3

Fix

dojox

npm · All systems

Affected

  • introduced 1.16.0, fixed 1.16.2 (semver)

Fixed versions

1.16.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences