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.
Vulnerable Library - Chart-0.2.0.min.js
Simple HTML5 charts using the canvas element.
Library home page: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/0.2.0/Chart.min.js
Path to dependency file: /taikhoan/admin_template/reports.html
Path to vulnerable library: /taikhoan/admin_template/js/chart.min.js,/taikhoan/admin_template/js/chart.min.js
Found in HEAD commit: 5ab3a90e6565ab40c5d420f2dd7b7d54c086025a
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2020-7746
### Vulnerable Library - Chart-0.2.0.min.jsSimple HTML5 charts using the canvas element.
Library home page: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/0.2.0/Chart.min.js
Path to dependency file: /taikhoan/admin_template/reports.html
Path to vulnerable library: /taikhoan/admin_template/js/chart.min.js,/taikhoan/admin_template/js/chart.min.js
Dependency Hierarchy: - :x: **Chart-0.2.0.min.js** (Vulnerable Library)
Found in HEAD commit: 5ab3a90e6565ab40c5d420f2dd7b7d54c086025a
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 (7.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - 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: chart.js - 2.9.4
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)