5.6medium
Prototype Pollution
- Severity
- 5.6medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.80% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-33f9-j839-rf8h
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| immer | from unspecified before 9.0.6 | CVE List |
| immer (npm) | from 7.0.0 before 9.0.6 | GitHub Advisory Database |
| immer_project immer | before 9.0.6 | NVD |
All scores
| snyk | 5.6medium CVSS:3.1 | 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 |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
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
References
| https://snyk.io/vuln/SNYK-JS-IMMER-1540542 | exploit, patch, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266 | exploit, patch, third-party-advisory, web | |
| https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23436 | advisory | |
| https://github.com/immerjs/immer | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23436 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-33f9-j839-rf8h changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2021-23436 changed 2026-06-17 | Public domain |