CVE-2020-7746
Prototype pollution in chart.js
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » chart.jsvia npm chart.js | < 2.9.4 | 2.9.4 |
| org.webjars.npm » chart.jsvia npm chart.js | < 2.9.4 | 2.9.4 |
Blast radius
50% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 8 |
Most used dependents
- org.webjars.npm » ng2-charts0 usages
- com.github.wywuzh » commons-static-adminlte0 usages
- org.webjars.npm » startbootstrap-sb-admin0 usages
- org.webjars.npm » github-com-valor-software-ng2-charts0 usages
Computed from the dependency graph of build 20261204.0837 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2020-7746 | nvd.nist.gov |
| Web | chartjs/Chart.js pull request #7920 | github.com |
| Web | vuln/SNYK-JAVA-ORGWEBJARSBOWER-1019375 | snyk.io |
| Web | vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCHARTJS-1019376 | snyk.io |
| Web | vuln/SNYK-JAVA-ORGWEBJARSNPM-1019374 | snyk.io |
| Web | vuln/SNYK-JS-CHARTJS-1018716 | snyk.io |
