Medium severity5.6NVD Advisory· Published Sep 1, 2021· Updated Jun 17, 2026
CVE-2021-23438
CVE-2021-23438
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mpathnpm | < 0.8.4 | 0.8.4 |
Affected products
2- mpath/mpathdescription
Patches
Vulnerability mechanics
References
6- github.com/aheckmann/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fcnvdPatchThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579548nvdExploitThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-JS-MPATH-1577289nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-p92x-r36w-9395ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-23438ghsaADVISORY
- github.com/mongoosejs/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fcghsaWEB
News mentions
0No linked articles in our index yet.