Skip to content

CVE-2020-7746 Prototype Pollution

CriticalCVSS 9.8 EPSS 4.7%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
npm chart.js(npm) < 2.9.4 2.9.4
debian/node-chart.js(Debian:12) < 2.9.4+dfsg+~cs2.10.1-1 2.9.4+dfsg+~cs2.10.1-1
debian/node-chart.js(Debian:14) < 2.9.4+dfsg+~cs2.10.1-1 2.9.4+dfsg+~cs2.10.1-1
debian/node-chart.js(Debian:13) < 2.9.4+dfsg+~cs2.10.1-1 2.9.4+dfsg+~cs2.10.1-1
chartjs chart.js < 2.9.4 2.9.4
ubuntu/node-chart.js(Ubuntu:20.04) All versions No fix listed
ubuntu/node-chart.js(Ubuntu:20.04) = 2.7.3+dfsg-5 No fix listed
ubuntu/node-chart.js(Ubuntu:20.04) = 2.9.3+dfsg-1 No fix listed
ubuntu/node-chart.js(Ubuntu:20.04) = 2.9.3+dfsg-2 No fix listed

References