CVE-2021-23436
Prototype Pollution
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
2Exploited in Wild
-Decision
Descriptions
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.
Esto afecta al paquete immer versiones anteriores a 9.0.6. Una vulnerabilidad de confusión de tipo puede conllevar a una omisión de CVE-2020-28477 cuando las claves proporcionadas por el usuario usadas en el parámetro de la ruta son matrices. En particular, esta omisión es posible porque la condición (p === "__proto__" || p === "constructor") en applyPatches_ devuelve false si p es ["__proto__"] (o ["constructor"]). El operador === (operador de igualdad estricta) devuelve false si los operandos tienen distinto tipo
A prototype pollution flaw was found in the Node.js immer module. By adding or modifying properties of Object.prototype using a __proto__ or constructor payload, an attacker could execute arbitrary code on the system.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-01-08 CVE Reserved
- 2021-09-01 CVE Published
- 2024-07-24 EPSS Updated
- 2024-09-16 CVE Updated
- 2024-09-16 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
CAPEC
References (5)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266 | 2024-09-16 | |
https://snyk.io/vuln/SNYK-JS-IMMER-1540542 | 2024-09-16 |
URL | Date | SRC |
---|---|---|
https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237 | 2021-09-10 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2021-23436 | 2022-10-05 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2041833 | 2022-10-05 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Immer Project Search vendor "Immer Project" | Immer Search vendor "Immer Project" for product "Immer" | < 9.0.6 Search vendor "Immer Project" for product "Immer" and version " < 9.0.6" | node.js |
Affected
|