CVE-2020-7746
Chartjs Chart.js vulnerability
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 products
Chart.js. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Chartjs Chart.js runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/chartjs/Chart.js/pull/7920 · Patch
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1019375 · Exploit
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCHARTJS-1019376 · Exploit
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019374 · Exploit
- snyk.io/vuln/SNYK-JS-CHARTJS-1018716 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2020-7746
- cve.org/CVERecord?id=CVE-2020-7746
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.