{"id":"CVE-2021-39227","published":"2021-09-17T14:10:10Z","modified":"2024-08-04T01:58:18Z","title":"Fix prototype pollution in the zrender merge and clone helper methods","vendor":"ecomfe","product":"zrender","tier":"tail","description":{"text":"ZRender is a lightweight graphic library providing 2d draw for Apache ECharts. In versions prior to 5.2.1, using `merge` and `clone` helper methods in the `src/core/util.ts` module results in prototype pollution. It affects the popular data visualization library Apache ECharts, which uses and exports these two methods directly. The GitHub Security Advisory page for this vulnerability contains a proof of concept. This issue is patched in ZRender version 5.2.1. One workaround is available: Check if there is `__proto__` in the object keys. Omit it before using it as an parameter in these affected methods. Or in `echarts.util.merge` and `setOption` if project is using ECharts.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01266,"percentile":0.70453,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/ecomfe/zrender/security/advisories/GHSA-fhv8-fx5f-7fxf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ecomfe/zrender/pull/826","tags":["x_refsource_MISC"]},{"url":"https://github.com/ecomfe/zrender/releases/tag/5.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":14.09},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"ecomfe","affectedVersions":[{"vendor":"ecomfe","product":"zrender","versions":["< 5.2.1"]}],"affected":[{"ecosystem":"npm","package":"zrender","vulnerableRanges":[">=5.0.0, <5.2.1","<4.3.3"],"patched":["5.2.1","4.3.3"],"from":["GHSA-fhv8-fx5f-7fxf"],"provenance":"source"}],"summary":{"text":"The zrender graphics library (used by Apache ECharts) has a prototype pollution flaw in its merge and clone helper methods in the src/core/util.ts module. An attacker who can supply object input to these methods, whether directly or through ECharts' echarts.util.merge and setOption, can modify object prototypes, which requires only local access and no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:34Z"},"euvd":{"id":"EUVD-2021-2053","exploited":false,"provenance":"source"}}