GHSA-p92x-r36w-9395

Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-p92x-r36w-9395/GHSA-p92x-r36w-9395.json
Aliases
  • CVE-2021-23438
Published
2021-09-02T22:02:25Z
Modified
2023-03-30T22:42:10Z
Details

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.

References

Affected packages

npm / mpath

mpath

Affected ranges

Type
SEMVER
Events
Introduced
0
Fixed
0.8.4

Affected versions

Ecosystem specific

{
    "affected_functions": [
        "mpath.get",
        "mpath.has",
        "mpath.unset",
        "mpath.set"
    ]
}