Vulnerability · Published Oct 29, 2020 · Assigned by snyk
CVE-2020-7746Prototype Pollution
High 7.5
In plain English
A high-severity security flaw in chart.js. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.7% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)4.7%top 8.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-chart.js | 2.9.4+dfsg+~cs2.10.1-1 | DEBIAN-CVE-2020-7746 |
| Debian:13 | node-chart.js | 2.9.4+dfsg+~cs2.10.1-1 | DEBIAN-CVE-2020-7746 |
| Debian:14 | node-chart.js | 2.9.4+dfsg+~cs2.10.1-1 | DEBIAN-CVE-2020-7746 |
| npm | chart.js | 2.9.4 | GHSA-h68q-55jf-x68w |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-CHARTJS-1018716 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019374 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1019375 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCHARTJS-1019376 x_refsource_MISC
- https://github.com/chartjs/Chart.js/pull/7920 x_refsource_MISC