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

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

September 1, 2021 (updated September 10, 2021)

A type confusion vulnerability can lead to a bypass of CVE-2020-28477 when the user-provided keys used in the path parameter are arrays. In particular, this bypass is possible because the condition (p === "__proto__" || p === "constructor") in applyPatches_ returns false if p is ['__proto__'] (or ['constructor']). The === operator (strict equality operator) returns false if the operands have different type.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2021-23436 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 9.0.6

Fixed versions

  • 9.0.6

Solution

Upgrade to version 9.0.6 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/immer/CVE-2021-23436.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:40 +0000.