Prototype pollution in immer
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-843 and the CVSS impact.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | immer | before 9.0.6 | 9.0.6 | Patch available | CNA |
| — | immer (npm) | 7.0.0 to before 9.0.6 | 9.0.6 | Patch available | GHSA-33f9-j839-rf8h |
- immer Vendor— Affected before 9.0.6 Fixed in 9.0.6 Patch available CNA
- immer (npm) Vendor— Affected 7.0.0 to before 9.0.6 Fixed in 9.0.6 Patch available GHSA-33f9-j839-rf8h
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:immer_project:immer:*:*:*:*:*:node.js:*:* | before 9.0.6 | Vulnerable | Immer Project |
- cpe:2.3:a:immer_project:immer:*:*:*:*:*:node.js:*:* Versions before 9.0.6 Vulnerable ·Immer Project
Remediation
- Fix · CNA immer Fixed in 9.0.6
- Fix · GHSA-33f9-j839-rf8h immer (npm) Fixed in 9.0.6 Advisory →
Red Hat 1 advisory
- RHSA-2022:6813 Released 2022-10-05 · Red Hat rating ImportantRed Hat Process Automation Manager 7.13.1 security update
- RHPAM 7.13.1 async
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Process Automation 7 | Affected | No fix planned: Out of support scope |
| RHPAM 7.13.1 async | Fixed | RHSA-2022:6813 |
Not affected: 1 product
- Red Hat Advanced Cluster Management for Kubernetes 2
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23436
- 2026-10-03 Alias added: GHSA-33f9-j839-rf8h
References
More Immer Project Immer vulnerabilities
- TI-2021-02689 Prototype Pollution in immerjs/immer CVSS 3.1CRITICAL 9.8
- TI-2020-17287 Prototype pollution in immer CVSS 3.1HIGH 7.5
Sources
- CVE-2021-23436 · CVE Program
- CVE-2021-23436 · NVD
- FIRST EPSS
- GHSA-33f9-j839-rf8h · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23436 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences