{"schemaVersion":3,"id":"CVE-2021-23438","aliases":["GHSA-p92x-r36w-9395"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2021-09-01T18:20:11.072Z","modified":"2024-09-16T17:52:46.870Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.6,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":5.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01723,"percentile":0.77184,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01723},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01723,"percentile":0.77184}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01723,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01723,"percentile":0.77184}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_C1108E8782E44E7F","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JS-MPATH-1577289","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_B60EA9D8D2815363","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579548","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type ('Type Confusion')","description":"The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/843.html"}],"affected":[{"vendor":"mpath_project","product":"mpath","name":"mpath","label":"mpath","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.8.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.4","eol":null,"hubHref":"/vendor/mpath_project/mpath"},{"vendor":"Npm","product":"mpath","name":"mpath","label":"mpath","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/mpath","purlType":"npm","versions":[{"text":"< 0.8.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.4","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MPATH-1577289","label":"snyk.io/vuln/SNYK-JS-MPATH-1577289","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579548","label":"snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579548","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://github.com/aheckmann/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc","label":"github.com/aheckmann/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23438","label":"nvd.nist.gov/vuln/detail/CVE-2021-23438","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/mongoosejs/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc","label":"github.com/mongoosejs/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/aheckmann/mpath","label":"github.com/aheckmann/mpath","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-09-01T18:20:11.072Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T17:52:46.870Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:17:14.226Z","stale":false,"partial":false}}