{"api_version":"1","generated_at":"2026-04-23T00:59:33+00:00","cve":"CVE-2021-23436","urls":{"html":"https://cve.report/CVE-2021-23436","api":"https://cve.report/api/cve/CVE-2021-23436.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23436","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23436"},"summary":{"title":"CVE-2021-23436","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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2021-09-01 18:15:00","updated_at":"2021-09-10 13:33:00"},"problem_types":["CWE-843"],"metrics":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266","name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266","refsource":"MISC","tags":[],"title":"Prototype Pollution in org.webjars.npm:immer | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237","name":"https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237","refsource":"MISC","tags":[],"title":"fix(security): Follow up on CVE-2020-28477 where `path: [[\"__proto__\"… · immerjs/immer@fa671e5 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-JS-IMMER-1540542","name":"https://snyk.io/vuln/SNYK-JS-IMMER-1540542","refsource":"MISC","tags":[],"title":"Prototype Pollution in immer | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23436","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23436","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Alessio Della Libera of Snyk Research Team","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"23436","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"immer_project","cpe5":"immer","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-23436","qid":"981061","title":"Nodejs (npm) Security Update for immer (GHSA-33f9-j839-rf8h)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2021-09-01T17:28:18.037848Z","ID":"CVE-2021-23436","STATE":"PUBLIC","TITLE":"Prototype Pollution"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"immer","version":{"version_data":[{"version_affected":"<","version_value":"9.0.6"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Prototype Pollution"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-IMMER-1540542","name":"https://snyk.io/vuln/SNYK-JS-IMMER-1540542"},{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266","name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579266"},{"refsource":"MISC","url":"https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237","name":"https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"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","baseScore":5.6,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"Alessio Della Libera of Snyk Research Team"}]},"nvd":{"publishedDate":"2021-09-01 18:15:00","lastModifiedDate":"2021-09-10 13:33:00","problem_types":["CWE-843"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:immer_project:immer:*:*:*:*:*:node.js:*:*","versionEndExcluding":"9.0.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23436","Ordinal":"198163","Title":"CVE-2021-23436","CVE":"CVE-2021-23436","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23436","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"23436","Ordinal":"2","NoteData":"2021-09-01","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"23436","Ordinal":"3","NoteData":"2021-09-01","Type":"Other","Title":"Modified"}]}}}