chart.js@2.9.3 vulnerabilities

Simple HTML5 charts using the canvas element.

Direct Vulnerabilities

Known vulnerabilities in the chart.js package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Prototype Pollution

chart.js is a Simple HTML5 charts using the canvas element.

Affected versions of this package are vulnerable to Prototype Pollution. 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.

How to fix Prototype Pollution?

Upgrade chart.js to version 2.9.4 or higher.

<2.9.4