CVE-2021-23436
highpriority · track · 40EPSS 0.018 · 78 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 5.6–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-33f9-j839-rf8hPrototype Pollution in immer2021-09-02ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237cnnvd
- https://packetstormsecurity.com/files/168638/Red-Hat-Security-Advisory-2022-6813-01.htmlcnnvd
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266cnnvd
- https://snyk.io/vuln/SNYK-JS-IMMER-1540542cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021101114cnnvd
- https://www.ibm.com/support/pages/node/6497075cnnvd
- https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237enisa_euvd
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan