CVE Vulnerabilities

CVE-2020-7746

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Published: Oct 29, 2020 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

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

The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.

Affected Software

NameVendorStart VersionEnd Version
Chart.jsChartjs*2.9.4 (excluding)
RHPAM 7.13.1 asyncRedHatchart.js*
Node-chart.jsUbuntuesm-apps/focal*
Node-chart.jsUbuntufocal*
Node-chart.jsUbuntugroovy*
Node-chart.jsUbuntutrusty*
Node-chart.jsUbuntuupstream*

Potential Mitigations

References