{"id":"GHSA-fhv8-fx5f-7fxf","summary":"Prototype Pollution in the merge and clone helper methods","details":"### Impact\nUsing `merge` and `clone` helper methods in the `src/core/util.ts` module will have prototype pollution. It will affect the popular data visualization library Apache ECharts, which is using and exported these two methods directly.\n\n### Patches\n \nIt has been patched in https://github.com/ecomfe/zrender/pull/826. \nUsers should update zrender to `5.2.1`.  and update echarts to `5.2.1` if project is using echarts.\n\n### References\nNA\n\n### For more information\nNA\n","aliases":["CVE-2021-39227"],"modified":"2026-07-08T06:28:58.491405487Z","published":"2021-09-20T19:53:15Z","database_specific":{"github_reviewed_at":"2021-09-17T17:51:46Z","nvd_published_at":"2021-09-17T14:15:00Z","cwe_ids":["CWE-1321","CWE-915"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/ecomfe/zrender/security/advisories/GHSA-fhv8-fx5f-7fxf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39227"},{"type":"WEB","url":"https://github.com/ecomfe/zrender/pull/826"},{"type":"PACKAGE","url":"https://github.com/ecomfe/zrender"},{"type":"WEB","url":"https://github.com/ecomfe/zrender/releases/tag/5.2.1"}],"affected":[{"package":{"name":"zrender","ecosystem":"npm","purl":"pkg:npm/zrender"},"ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-fhv8-fx5f-7fxf/GHSA-fhv8-fx5f-7fxf.json"}},{"package":{"name":"zrender","ecosystem":"npm","purl":"pkg:npm/zrender"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.3.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 4.3.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-fhv8-fx5f-7fxf/GHSA-fhv8-fx5f-7fxf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}