CVE-2020-7746
CRITICAL 9.8CVSS 3.1Prototype pollution in chart.js
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.
- Published
- 29 Oct 2020
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321CWE-915
- Also known as
- GHSA-h68q-55jf-x68w
- Sources
- NVDJSONOSV GHSA-h68q-55jf-x68wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | chartjs | chart.jscpe:2.3:a:chartjs:chart.js:*:*:*:*:*:node.js:*:* |
< 2.9.4 | 2.9.4 |
| OSV | npm | chart.js | < 2.9.4 | 2.9.4 |
References
- https://github.com/chartjs/Chart.js/pull/7920 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1019375 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCHARTJS-1019376 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019374 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CHARTJS-1018716 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7746 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 29 Oct 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 May 2021)