CVE-2021-23436 json
Prototype Pollution
published 2021-09-01 5 y ago modified 2026-06-17 4 mo ago also GHSA-33f9-j839-rf8h , EUVD-2021-1957
- cvss
- 5.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm immer 9.0.6
- n/a immer 9.0.6
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23436 updated cvss 9.8
immer: type confusion vulnerability can lead to a bypass of CVE-2020-28477
-
Red Hat Process Automation 7 immeraffected: no fix planned “Out of support scope”
-
Red Hat RHPAM 7.13.1 asyncfixed: vendor fix RHSA-2022:6813
-
Red Hat Advanced Cluster Management for Kubernetes 2 immernot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.80% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C |
| CNA | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | immer | >=7.0.0, <9.0.6 |
9.0.6 |
Affected products
- n/a immer
Classification
References
-
github.com
/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-IMMER-1540542
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266
web, exploit, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23436
advisory
-
github.com
/immerjs/immer
package
Sources
- CVE List CVE-2021-23436
- GitHub Advisory GHSA-33f9-j839-rf8h
- NVD CVE-2021-23436
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.