CVE-2021-39227

Fix prototype pollution in the zrender merge and clone helper methods

CRITICAL
9.8
CVSS Score
Published: September 17, 2021 at 02:10 PM UTC
Updated: June 17, 2026 at 04:03 AM UTC
2 products affected across 2 vendorsZrenderZrender

Using zrender by ecomfe?

Get instant alerts when new vulnerabilities affect zrender - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL9.8
Exploit prediction
EPSS 1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.2.1
Affected range stops below 5.2.1, so it looks safe — our inference, not a vendor statement
v < 5.2.1
Affected range stops below 5.2.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (3)

x_refsource_MISCPatchThird Party Advisory
https://github.com/ecomfe/zrender/pull/826
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/ecomfe/zrender/releases/tag/5.2.1

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1321

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card