This affects the package chart.js before 2.9.4. The options parameter 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 a prototype pollution.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Vulnerable Library - chart.js-2.9.3.tgz
Simple HTML5 charts using the canvas element.
Library home page: https://registry.npmjs.org/chart.js/-/chart.js-2.9.3.tgz
Path to dependency file: /components/dashboard/node_modules/chart.js/package.json
Path to vulnerable library: /components/dashboard/node_modules/chart.js/package.json
Vulnerabilities
Details
CVE-2020-7746
### Vulnerable Library - chart.js-2.9.3.tgzSimple HTML5 charts using the canvas element.
Library home page: https://registry.npmjs.org/chart.js/-/chart.js-2.9.3.tgz
Path to dependency file: /components/dashboard/node_modules/chart.js/package.json
Path to vulnerable library: /components/dashboard/node_modules/chart.js/package.json
Dependency Hierarchy: - :x: **chart.js-2.9.3.tgz** (Vulnerable Library)
Found in base branch: main
### Vulnerability DetailsThis affects the package chart.js before 2.9.4. The options parameter 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 a prototype pollution.
Publish Date: 2020-10-29
URL: CVE-2020-7746
### CVSS 3 Score Details (9.8)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7746
Release Date: 2020-10-29
Fix Resolution: 2.9.4
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)