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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:14:42 +0000.