Prototype Pollution in Chartjs Chart.js
CVE-2020-7746
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.
Vulnerability class: Prototype Pollution
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.047 (91.6th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 92nd percentile — 91.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.047 · newest: 0.047 · change: 0.000
Affected products
- Chartjs Chart.js
- Chart.js — versions unspecified
Weakness classification (CWE)
Public proof-of-concept exploits
References
- snyk.io/vuln/SNYK-JS-CHARTJS-1018716 (Exploit, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019374 (Exploit, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1019375 (Exploit, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCHARTJS-1019376 (Exploit, Third Party Advisory)
- github.com/chartjs/Chart.js/pull/7920 (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2020-7746?
- CVE-2020-7746 is a high-severity vulnerability in Chartjs Chart.js, classified under Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution). CVSS score: 7.5/10. Published 2020-10-29.
- How severe is CVE-2020-7746?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2020-7746 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.