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 trend (30 days)EPSS over the last 30 days for CVE-2020-7746: held from 0.047 to 0.047.

EPSS over last 30 days · oldest: 0.047 · newest: 0.047 · change: 0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.