Advisory

GHSA-h68q-55jf-x68w

Also known as: CVE-2020-7746

Summary

Prototype pollution in chart.js

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-10 18:47 UTC
Modified
2025-01-14 08:57 UTC

Affected packages and fixes

chart.js

npm · All systems

Affected

  • introduced 0, fixed 2.9.4 (semver)

Fixed versions

2.9.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences