Skip to content
OpenAdvisories
High · 7.5 CVE-2020-7746 EUVD-2021-1096GHSA-h68q-55jf-x68w

Prototype Pollution

Published Oct 29, 2020 · Updated Sep 16, 2024 · Assigned by snyk

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

VendorProductAffectedFixed
— chart.js unspecified – < 2.9.4 2.9.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-chart.js 2.9.4+dfsg+~cs2.10.1-1 —
Debian 13 node-chart.js 2.9.4+dfsg+~cs2.10.1-1 —
Debian 12 node-chart.js 2.9.4+dfsg+~cs2.10.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-chart.js No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm chart.js < 2.9.4 2.9.4 GHSA-h68q-55jf-x68w

References