CVE-2020-7746
Prototype Pollution
Reported by snyk · Published October 29, 2020
chart.js is fixed in 2.9.4 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| chart.js | npm | 2.9.4 |
| chart.js | chartjs | 2.9.4 |
| chart.js | n/a | 2.9.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | chart.js | unspecified |
| n/a | chart.js | * |
| npm | chart.js | 0 |
Timeline
- Oct 29, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 9, 2026 Security Advisory
- Aug 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-7746
vulnetix vdb fixes CVE-2020-7746
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-7746/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-7746 advisory