nitrite / nitrite-java

NoSQL embedded document store for Java
https://bit.ly/no2db
Apache License 2.0
821 stars 95 forks source link

Chart-2.1.4.min.js: 1 vulnerabilities (highest severity is: 9.8) #972

Closed mend-bolt-for-github[bot] closed 3 months ago

mend-bolt-for-github[bot] commented 3 months ago
Vulnerable Library - Chart-2.1.4.min.js

Simple HTML5 charts using the canvas element.

Library home page: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js

Path to dependency file: /nitrite-datagate/src/main/resources/templates/layout.html

Path to vulnerable library: /nitrite-datagate/src/main/resources/templates/../assets/js/Chart.min.js,/nitrite-datagate/src/main/resources/assets/js/Chart.min.js

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (Chart version) Remediation Possible**
CVE-2020-7746 Critical 9.8 Chart-2.1.4.min.js Direct chart.js - 2.9.4

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2020-7746 ### Vulnerable Library - Chart-2.1.4.min.js

Simple HTML5 charts using the canvas element.

Library home page: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js

Path to dependency file: /nitrite-datagate/src/main/resources/templates/layout.html

Path to vulnerable library: /nitrite-datagate/src/main/resources/templates/../assets/js/Chart.min.js,/nitrite-datagate/src/main/resources/assets/js/Chart.min.js

Dependency Hierarchy: - :x: **Chart-2.1.4.min.js** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

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.

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 Fix

Type: 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)
anidotnet commented 3 months ago

Version deprecated.