Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mpath
  4. ›
  5. CVE-2021-23438

CVE-2021-23438: Access of Resource Using Incompatible Type (Type Confusion)

September 1, 2021 (updated September 10, 2021)

This affects the package mpath 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

  • nvd.nist.gov/vuln/detail/CVE-2021-23438

Code Behaviors & Features

Detect and mitigate CVE-2021-23438 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.4

Fixed versions

  • 0.8.4

Solution

Upgrade to version 0.8.4 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

npm/mpath/CVE-2021-23438.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.