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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-chart.js | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | chart.js | < 2.9.4 | 2.9.4 | GHSA-h68q-55jf-x68w |