Skip to main content
← All vulnerabilities
CVE-2021-39227GHSA-FHV8-FX5F-7FXF

Fix prototype pollution in the zrender merge and clone helper methods

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.2.1, 4.3.3
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • ecomfe zrender

    fixed in 5.2.1

  • zrendernpm

    From 5.0.0 · fixed in 5.2.1

  • zrendernpm

    fixed in 4.3.3

References 3

GitHub · ecomfe/zrender