{"id":"CVE-2021-23436","aliases":["GHSA-33f9-j839-rf8h"],"summary":"Prototype Pollution","published_at":"2021-09-01T00:00:00Z","modified_at":"2026-08-04T17:07:33Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.01795000024139881,"percentile":0.7889900207519531,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"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_stack":[],"affected_other":[{"ecosystem":"NVD","package":"immer_project:immer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.0.6"}]}],"fixed":["9.0.6"],"provider":"nvd","source":"CVE-2021-23436","relation":"self"},{"ecosystem":"TuxCare:npm","package":"immer","purl":"pkg:npm/immer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.1-tuxcare.0"},{"fixed":"8.0.1-tuxcare.1"}]}],"versions":["8.0.1"],"fixed":["8.0.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792746527","relation":"upstream"},{"ecosystem":"npm","package":"immer","purl":"pkg:npm/immer","ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"9.0.6"}]}],"fixed":["9.0.6"],"provider":"osv","source":"GHSA-33f9-j839-rf8h","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"RHPAM 7.13.1 async","cpe":"cpe:/a:redhat:jboss_enterprise_bpms_platform:7.13","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2022:6813"],"provider":"redhat-vex","source":"CVE-2021-23436"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["immer"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-23436"},{"vendor":"Red Hat","product":"Red Hat Process Automation 7","cpe":"cpe:/a:redhat:jboss_bpms:7","status":"affected","packages":["immer"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2021-23436"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1792746527","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1792746527","published_at":"2026-10-23T09:08:47Z","modified_at":"2026-10-23T13:45:35.178704Z","summary":"TuxCare security update for immer (2 CVEs)","details":"TuxCare rebuilt immer to address 2 CVEs. Fixed in 8.0.1-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"immer","purl":"pkg:npm/immer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.1-tuxcare.0"},{"fixed":"8.0.1-tuxcare.1"}]}],"versions":["8.0.1"],"fixed":["8.0.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792746527","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2021-23436","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-23436","license":"CC-BY-4.0","published_at":"2021-09-01T17:30:09.902Z","modified_at":"2024-09-16T16:28:32.515Z","summary":"Prototype Pollution","details":"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.","severity":[{"type":"CVSS_V3","score":"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","source":"CVE-2021-23436"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-IMMER-1540542"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266"},{"type":"WEB","url":"https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237"}]},{"provider":"nvd","source_id":"CVE-2021-23436","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23436","severity":[],"affected":[{"ecosystem":"NVD","package":"immer_project:immer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.0.6"}]}],"fixed":["9.0.6"],"provider":"nvd","source":"CVE-2021-23436","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-33f9-j839-rf8h","relation":"self","url":"https://osv.dev/vulnerability/GHSA-33f9-j839-rf8h","license":"CC-BY-4.0","published_at":"2021-09-02T17:17:37Z","modified_at":"2025-01-14T09:12:14.521021Z","summary":"Prototype Pollution in immer","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-33f9-j839-rf8h"}],"affected":[{"ecosystem":"npm","package":"immer","purl":"pkg:npm/immer","ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"9.0.6"}]}],"fixed":["9.0.6"],"provider":"osv","source":"GHSA-33f9-j839-rf8h","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23436"},{"type":"WEB","url":"https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237"},{"type":"PACKAGE","url":"https://github.com/immerjs/immer"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-IMMER-1540542"}]},{"provider":"redhat-vex","source_id":"CVE-2021-23436","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-23436","license":"CC-BY-4.0","published_at":"2021-09-01T00:00:00Z","modified_at":"2026-08-04T17:07:33Z","summary":"immer: type confusion vulnerability can lead to a bypass of CVE-2020-28477","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2021-23436"},{"type":"Red Hat","score":"Important","source":"CVE-2021-23436"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"RHPAM 7.13.1 async","cpe":"cpe:/a:redhat:jboss_enterprise_bpms_platform:7.13","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2022:6813"],"provider":"redhat-vex","source":"CVE-2021-23436"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["immer"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-23436"},{"vendor":"Red Hat","product":"Red Hat Process Automation 7","cpe":"cpe:/a:redhat:jboss_bpms:7","status":"affected","packages":["immer"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2021-23436"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-23436.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-23436"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2041833"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-23436"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23436"}]}],"references":[{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-IMMER-1540542"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266"},{"type":"WEB","url":"https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23436"},{"type":"PACKAGE","url":"https://github.com/immerjs/immer"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-23436.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-23436"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2041833"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-23436"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1792746527","url":"https://osv.dev/vulnerability/CLSA-2026-1792746527","modified_at":"2026-10-23T13:45:35.178704Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2021-23436","url":"https://www.cve.org/CVERecord?id=CVE-2021-23436","license":"CC-BY-4.0","modified_at":"2024-09-16T16:28:32.515Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-23436","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23436","relation":"self"},{"provider":"osv","source_id":"GHSA-33f9-j839-rf8h","url":"https://osv.dev/vulnerability/GHSA-33f9-j839-rf8h","license":"CC-BY-4.0","modified_at":"2025-01-14T09:12:14.521021Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-23436","url":"https://access.redhat.com/security/cve/CVE-2021-23436","license":"CC-BY-4.0","modified_at":"2026-08-04T17:07:33Z","relation":"self"}]}
