Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. chart.js
  4. ›
  5. CVE-2020-7746

CVE-2020-7746: Improper Input Validation

October 29, 2020 (updated July 21, 2021)

The options parameter in chart.js is not properly sanitized when it is processed. When the options are processed, the existing options (or the defaults options) are deeply merged with provided options. However, during this operation, the keys of the object being set are not checked, leading to prototype pollution.

References

  • nvd.nist.gov/vuln/detail/CVE-2020-7746

Code Behaviors & Features

Detect and mitigate CVE-2020-7746 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 2.9.4

Fixed versions

  • 2.9.4

Solution

Upgrade to version 2.9.4 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/chart.js/CVE-2020-7746.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:45 +0000.