CVE-2020-7746

Description

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.

Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:U/RC:C · source cna
Exploit chance (EPSS)
4.735%
chance of exploitation in the next 30 days
higher than 92% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 4
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2020-10-29Published by the CNA08:05 UTC
  2. 2021-05-10GitHub advisory published (GHSA-h68q-55jf-x68w)193 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-h68q-55jf-x68w, affected packages:

PackageVulnerable versionsFixed in
npm chart.jsbefore 2.9.42.9.4

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
chartjs chart.jsbefore 2.9.4fixed in 2.9.42.9.4

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources