Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. zrender
  4. ›
  5. CVE-2021-39227

CVE-2021-39227: Prototype Pollution in the merge and clone helper methods

September 20, 2021 (updated December 6, 2024)

Using merge and clone helper methods in the src/core/util.ts module will have prototype pollution. It will affect the popular data visualization library Apache ECharts, which is using and exported these two methods directly.

References

  • github.com/advisories/GHSA-fhv8-fx5f-7fxf
  • github.com/ecomfe/zrender
  • github.com/ecomfe/zrender/pull/826
  • github.com/ecomfe/zrender/releases/tag/5.2.1
  • github.com/ecomfe/zrender/security/advisories/GHSA-fhv8-fx5f-7fxf
  • nvd.nist.gov/vuln/detail/CVE-2021-39227

Code Behaviors & Features

Detect and mitigate CVE-2021-39227 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.3.3, all versions starting from 5.0.0 before 5.2.1

Fixed versions

  • 5.2.1
  • 4.3.3

Solution

Upgrade to versions 4.3.3, 5.2.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
  • CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Source file

npm/zrender/CVE-2021-39227.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:41 +0000.