Vulnerability Details : 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.
Products affected by CVE-2020-7746
- cpe:2.3:a:chartjs:chart.js:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-7746
1.80%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 88 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-7746
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
Snyk |
CWE ids for CVE-2020-7746
-
The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.Assigned by: nvd@nist.gov (Primary)
References for CVE-2020-7746
-
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCHARTJS-1019376
Prototype Pollution in org.webjars.bowergithub.chartjs:chart.js | SnykExploit;Third Party Advisory
-
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019374
Prototype Pollution in org.webjars.npm:chart.js | SnykExploit;Third Party Advisory
-
https://snyk.io/vuln/SNYK-JS-CHARTJS-1018716
Prototype Pollution in chart.js | SnykExploit;Third Party Advisory
-
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1019375
Prototype Pollution in org.webjars.bower:chart.js | SnykExploit;Third Party Advisory
-
https://github.com/chartjs/Chart.js/pull/7920
Use Object.create(null) as `merge` target, to prevent prototype pollution by kurkle · Pull Request #7920 · chartjs/Chart.js · GitHubPatch;Third Party Advisory
Jump to