NodeJS/chart.js/1.0.1
Simple HTML5 charts using the canvas element.
https://www.npmjs.com/package/chart.js
MIT
1 Security Vulnerabilities
Prototype pollution in chart.js
Published date: 2021-05-10T18:47:53Z
CVE: CVE-2020-7746
Links:
- https://nvd.nist.gov/vuln/detail/CVE-2020-7746
- https://github.com/advisories/GHSA-h68q-55jf-x68w
- https://github.com/chartjs/Chart.js/pull/7920
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1019375
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCHARTJS-1019376
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019374
- https://snyk.io/vuln/SNYK-JS-CHARTJS-1018716
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.
Affected versions:
["2.0.2", "2.1.2", "2.1.3", "2.2.0-rc.1", "2.2.0-rc.2", "2.2.0", "2.2.2", "2.3.0-rc.1", "2.4.0", "2.6.0", "2.7.0", "2.8.0", "2.9.0", "2.9.2", "2.9.3", "1.0.1-beta.2", "1.0.1", "1.0.2", "1.1.0", "1.1.1", "2.0.0", "2.0.1", "2.1.0", "2.1.1", "2.1.4", "2.1.5", "2.1.6", "2.2.1", "2.3.0", "2.5.0", "2.7.1", "2.7.2", "2.7.3", "2.8.0-rc.1", "2.9.1"]
Secure versions:
[2.9.4, 3.0.0, 3.0.0-alpha, 3.0.0-alpha.2, 3.0.0-beta, 3.0.0-beta.10, 3.0.0-beta.11, 3.0.0-beta.12, 3.0.0-beta.13, 3.0.0-beta.14, 3.0.0-beta.2, 3.0.0-beta.3, 3.0.0-beta.4, 3.0.0-beta.5, 3.0.0-beta.6, 3.0.0-beta.7, 3.0.0-beta.8, 3.0.0-beta.9, 3.0.0-rc, 3.0.0-rc.2, 3.0.0-rc.3, 3.0.0-rc.4, 3.0.0-rc.5, 3.0.0-rc.6, 3.0.0-rc.7, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.4.1, 3.5.0, 3.5.1, 3.6.0, 3.6.1, 3.6.2, 3.7.0, 3.7.1, 3.8.0, 3.8.1, 3.8.2, 3.9.0, 3.9.1, 4.0.0-alpha.2, 4.0.0-alpha.3, 4.0.0-release, 4.0.1, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.4.6, 4.4.7, 4.4.8, 4.4.9, 4.5.0]
Recommendation:
Update to version 4.5.0.
107 Other Versions
Version | License | Security | Released | |
---|---|---|---|---|
2.0.1 | MIT | 1 | 2016-04-16 - 19:26 | about 9 years |
2.0.0 | MIT | 1 | 2016-04-09 - 12:09 | about 9 years |
1.1.1 | MIT | 1 | 2016-04-05 - 22:54 | about 9 years |
1.1.0 | MIT | 1 | 2016-04-01 - 16:08 | about 9 years |
1.0.2 | MIT | 1 | 2015-03-10 - 11:05 | over 10 years |
1.0.1 | MIT | 1 | 2015-01-07 - 23:02 | over 10 years |
1.0.1-beta.2 | MIT | 1 | 2014-07-08 - 22:30 | almost 11 years |