CVE-2021-39227
Published:September 17, 2021
Updated:September 21, 2026
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.
Affected Packages
zrender (CDN_JS):
Affected version(s) >=5.0.0 <5.2.1Fix Suggestion:
Update to version 5.2.1zrender (NPM):
Affected version(s) >=5.0.0 <5.2.1Fix Suggestion:
Update to version 5.2.1zrender (NPM):
Affected version(s) >=2.0.2 <4.3.3Fix Suggestion:
Update to version 4.3.3Additional Notes
The description of this vulnerability differs from MITRE.
Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.2
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
1.39