Live threats

All CVEs / Baidu

CVE-2021-39227Baidu Zrender

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Sep 17, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Zrender.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm zrender ≥ 5.0.0 < 5.2.1 5.2.1 npm install zrender@5.2.1
npm zrender < 4.3.3 4.3.3 npm install zrender@4.3.3

Per OSV / GitHub Advisories (GHSA-fhv8-fx5f-7fxf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
baiduzrender< 5.2.1

Official sources

References

Links published by the sources. Open them with care.