GHSA-p92x-r36w-9395

Suggest an improvement
Source
https://github.com/advisories/GHSA-p92x-r36w-9395
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-p92x-r36w-9395/GHSA-p92x-r36w-9395.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-p92x-r36w-9395
Aliases
  • CVE-2021-23438
  • SNYK-JAVA-ORGWEBJARSNPM-1579548
  • SNYK-JS-MPATH-1577289
Published
2021-09-02T22:02:25Z
Modified
2023-11-08T04:05:09.724206Z
Severity
  • 5.6 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
Type confusion in mpath
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

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.8.4

Ecosystem specific

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