logo

CVE-2021-23436 immer

Package

Manager: npm
Name: immer
Vulnerable Version: >=7.0.0 <9.0.6

Severity

Level: Critical

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

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00149 pctl0.36017

Details

Prototype Pollution in immer This affects the package immer before 9.0.6. 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.

Metadata

Created: 2021-09-02T17:17:37Z
Modified: 2024-04-25T22:16:53Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-33f9-j839-rf8h/GHSA-33f9-j839-rf8h.json
CWE IDs: ["CWE-1321", "CWE-843"]
Alternative ID: GHSA-33f9-j839-rf8h
Finding: F390
Auto approve: 1