HIGH 7.5

CVE-2020-7746

Prototype pollution in chart.js

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 Maven artifacts (2)

ArtifactAffected versionsFixed in
org.mvnpm » chart.jsvia npm chart.js
< 2.9.4
2.9.4
org.webjars.npm » chart.jsvia npm chart.js
< 2.9.4
2.9.4

Blast radius

1affected artifacts
20affected versions
4dependent artifacts (est.)
8dependent versions

50% of the dependent artifacts (2) still pull an affected version in their latest release.

DepthDependent versions
Direct
8

Most used dependents

Computed from the dependency graph of build 20261204.0837 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) . See all on OSV