CVE-2020-7746 Prototype Pollution

High 7.5 Published Updated

Prototype pollution in Chart.js allows attackers to manipulate object prototypes, potentially leading to code execution or security bypasses.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-7746?

CVE-2020-7746 is a high-severity vulnerability in chart.js, published on 29 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1321

Which versions are affected by CVE-2020-7746?

2 open source packages ship an affected version, including chart.js. It affects 1 product.

PackageAffectedFixed in
chart.js npmAll versions2.9.4
chart.js npmAll versions2.9.4

Products include Chartjs Chart.js.

How do I fix CVE-2020-7746?

Upgrade chart.js to 2.9.4 or later.

Is CVE-2020-7746 being exploited?

There is no known exploitation of CVE-2020-7746 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2020-7746, GHSA-h68q-55jf-x68w, UBUNTU-CVE-2020-7746.

Is CVE-2020-7746 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free