Fix prototype pollution in the zrender merge and clone helper methods
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Tampering
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-915.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ecomfe | zrender | before 5.2.1 | 5.2.1 | Patch available | CNA |
| — | zrender (npm) | 5.0.0 to before 5.2.1 | 5.2.1 | Patch available | GHSA-fhv8-fx5f-7fxf |
| — | zrender (npm) | before 4.3.3 | 4.3.3 | Patch available | GHSA-fhv8-fx5f-7fxf |
- zrender Vendorecomfe Affected before 5.2.1 Fixed in 5.2.1 Patch available CNA
- zrender (npm) Vendor— Affected 5.0.0 to before 5.2.1 Fixed in 5.2.1 Patch available GHSA-fhv8-fx5f-7fxf
- zrender (npm) Vendor— Affected before 4.3.3 Fixed in 4.3.3 Patch available GHSA-fhv8-fx5f-7fxf
Remediation
- Fix · CNA zrender (ecomfe) Fixed in 5.2.1
- Fix · GHSA-fhv8-fx5f-7fxf zrender (npm) Fixed in 5.2.1 Advisory →
- Fix · GHSA-fhv8-fx5f-7fxf zrender (npm) Fixed in 4.3.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-39227
- 2026-10-03 Alias added: GHSA-fhv8-fx5f-7fxf
References
Sources
- CVE-2021-39227 · CVE Program
- CVE-2021-39227 · NVD
- FIRST EPSS
- GHSA-fhv8-fx5f-7fxf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences