CVE-2021-39227 Details
Description
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.
A prototype pollution vulnerability has been identified in the ZRender library, which is used by Apache ECharts for 2D graphics rendering. This issue affects ZRender versions prior to 5.2.1 and ECharts versions prior to 5.2.1. The vulnerability arises in the 'src/core/util.ts' module, where the 'merge' and 'clone' helper methods can be exploited to manipulate object prototypes. As a result, an attacker could potentially alter the behavior of the application by injecting malicious properties or methods into objects, leading to unexpected behavior or security issues.
Users are advised to update ZRender to version 5.2.1 or 4.3.3. If using Apache ECharts, it should also be updated to version 5.2.1.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ecomfe/zrender/pull/826 | CVE | PatchThird Party Advisory |
| https://github.com/ecomfe/zrender/releases/tag/5.2.1 | CVE | Release NotesThird Party Advisory |
| https://github.com/ecomfe/zrender/security/advisories/GHSA-fhv8-fx5f-7fxf | CVE | Third Party Advisory |
| https://github.com/ecomfe/zrender/pull/826 | [email protected] | PatchThird Party Advisory |
| https://github.com/ecomfe/zrender/releases/tag/5.2.1 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/ecomfe/zrender/security/advisories/GHSA-fhv8-fx5f-7fxf | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| baidu zrender | < 5.2.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 10, 2022 | Modified Analysis | [email protected] |
| May 12, 2022 | CVE Modified | [email protected] |
| Sep 29, 2021 | Initial Analysis | [email protected] |