Vulnerability library
Security checkJanuary 27, 2023

Prototype pollution in chart.js

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmchart.js

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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.

Recommendation

Update the chart.js package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.9.4
  • Patched version(s): 2.9.4

References

Could your website be exposed too?

SmartScanner can check your website for Prototype pollution in chart.js and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023