CVE-2021-39227
JavaScript vulnerability analysis and mitigation

Overview

ZRender, a lightweight graphic library providing 2D drawing capabilities for Apache ECharts, was found to contain a prototype pollution vulnerability (CVE-2021-39227) in versions prior to 5.2.1. The vulnerability exists in the merge and clone helper methods within the src/core/util.ts module. This security issue was discovered and disclosed in September 2021, affecting both ZRender directly and the popular data visualization library Apache ECharts which uses and exports these methods (GitHub Advisory).

Technical details

The vulnerability stems from the implementation of merge and clone helper methods in the src/core/util.ts module, which allows for prototype pollution. The issue received a CVSS classification and was categorized under CWE-1321. A proof of concept demonstrating the vulnerability was provided in the GitHub Security Advisory (GitHub Advisory).

Impact

The vulnerability could lead to prototype pollution, potentially affecting applications using either ZRender directly or Apache ECharts, which incorporates and exposes these vulnerable methods. This could result in unexpected behavior or security implications in applications utilizing these libraries (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in ZRender version 5.2.1. Users are advised to update to this version or later. For those using Apache ECharts, updating to version 5.2.1 or later is recommended. As a workaround, users can check for and omit __proto__ in object keys before using them as parameters in the affected methods or in echarts.util.merge and setOption (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management