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.
CVE-2021-39227 - Critical Severity Vulnerability
Vulnerable Library - zrender-3.7.4.tgz
A lightweight canvas library.
Library home page: https://registry.npmjs.org/zrender/-/zrender-3.7.4.tgz
Path to dependency file: /vendors/echarts/package.json
Path to vulnerable library: /vendors/echarts/node_modules/zrender/package.json
Dependency Hierarchy: - :x: **zrender-3.7.4.tgz** (Vulnerable Library)
Found in HEAD commit: 0736072b46adcf2ceef588bb8660b4851929bc43
Found in base branch: master
Vulnerability Details
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.
Publish Date: 2021-09-17
URL: CVE-2021-39227
CVSS 3 Score Details (9.8)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-39227
Release Date: 2021-09-17
Fix Resolution: 5.2.1
Step up your Open Source Security Game with Mend here