CVE-2021-23436
CRITICAL 9.8CVSS 3.1Prototype 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.
- Published
- 1 Sep 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321CWE-843
- Also known as
- GHSA-33f9-j839-rf8h
- Sources
- NVDJSONOSV GHSA-33f9-j839-rf8hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | immer_project | immercpe:2.3:a:immer_project:immer:*:*:*:*:*:node.js:*:* |
< 9.0.6 | 9.0.6 |
| OSV | npm | immer | >= 7.0.0, < 9.0.6 | 9.0.6 |
References
- https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-IMMER-1540542 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23436 · ADVISORY
- https://github.com/immerjs/immer · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 1 Sep 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Sep 2021)