{"id":"CVE-2021-23438","aliases":["CVE-2021-23438","GHSA-p92x-r36w-9395"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution","summary":"This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.","source":"cvelist"},{"lang":"en","text":"This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition `ignoreProperties.indexOf(parts[i]) !== -1` returns `-1` if `parts[i]` is `['__proto__']`. This is because the method that has been called if the input is an array is `Array.prototype.indexOf()` and not `String.prototype.indexOf()`. They behave differently depending on the type of the input.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta al paquete mpath versiones anteriores a 0.8.4. Una vulnerabilidad de confusión de tipo puede conllevar a una omisión de CVE-2018-16490. En concreto, la condición ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. Esto es debido a que el método que se ha llamado si la entrada es un array es Array.prototype.indexOf() y no String.prototype.indexOf(). Se comportan de forma diferente según el tipo de entrada","source":"nvd"}],"published":"2021-09-01T18:20:11.072Z","modified":"2026-06-17T03:38:45.830Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C","score":5.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-843"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.8.4","status":"affected"}],"product":"mpath","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.4"}],"ecosystem":"npm","package":"mpath","purl":"pkg:npm/mpath","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.8.4"}],"vendor":"mpath_project","product":"mpath","cpe":"cpe:2.3:a:mpath_project:mpath:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MPATH-1577289","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579548","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/aheckmann/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23438","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mongoosejs/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/aheckmann/mpath","tags":["package"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23438","url":"https://www.cve.org/CVERecord?id=CVE-2021-23438","licence":"CVE Terms of Use","modified":"2024-09-16T17:52:46.870Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p92x-r36w-9395","url":"https://github.com/advisories/GHSA-p92x-r36w-9395","licence":"CC-BY-4.0","modified":"2025-01-14T09:12:14.202Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23438","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23438","licence":"Public domain","modified":"2026-06-17T03:38:45.830Z"}],"updatedAt":"2026-11-25T22:58:03.618Z","epss":{"score":0.01723,"percentile":0.78195,"date":"2026-12-01T12:00:22.000Z"}}