CVE-2021-23436

Access of Resource Using Incompatible Type (Type Confusion) in npm/immer

Identifier

CVE-2021-23436

Package Slug

npm/immer

Vulnerability

Access of Resource Using Incompatible Type (Type Confusion)

Description

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.

Affected Versions

All versions before 9.0.6

Solution

Upgrade to version 9.0.6 or above.

Last Modified

2021-09-13

source