Type confusion in mpath
Moderate severity
GitHub Reviewed
Published
Sep 2, 2021
to the GitHub Advisory Database
•
Updated Nov 29, 2023
Description
Published by the National Vulnerability Database
Sep 1, 2021
Reviewed
Sep 2, 2021
Published to the GitHub Advisory Database
Sep 2, 2021
Last updated
Nov 29, 2023
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
ifparts[i]
is['__proto__']
. This is because the method that has been called if the input is an array isArray.prototype.indexOf()
and notString.prototype.indexOf()
. They behave differently depending on the type of the input.References