Lucene search

K
nodejsAnonymousNODEJS:1704
HistoryMay 10, 2021 - 6:51 p.m.

Prototype pollution in chart.js

2021-05-1018:51:27
Anonymous
www.npmjs.com
136

0.016 Low

EPSS

Percentile

87.3%

Overview

In chart.js before version 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.

Recommendation

Upgrade to version 2.9.4 or later

References

CPENameOperatorVersion
chart.jslt2.9.4