Vulnerability · Published Oct 29, 2020 · Assigned by snyk

CVE-2020-7746Prototype Pollution

High 7.5

In plain English

A high-severity security flaw in chart.js. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.7% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)4.7%top 8.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-chart.js2.9.4+dfsg+~cs2.10.1-1DEBIAN-CVE-2020-7746
Debian:13node-chart.js2.9.4+dfsg+~cs2.10.1-1DEBIAN-CVE-2020-7746
Debian:14node-chart.js2.9.4+dfsg+~cs2.10.1-1DEBIAN-CVE-2020-7746
npmchart.js2.9.4GHSA-h68q-55jf-x68w

Affected products (as reported)

VendorProductVersions
n/a chart.js unspecified – before 2.9.4

References