GHSA-h68q-55jf-x68w

Suggest an improvement
Source
https://github.com/advisories/GHSA-h68q-55jf-x68w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-h68q-55jf-x68w/GHSA-h68q-55jf-x68w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h68q-55jf-x68w
Aliases
Published
2021-05-10T18:47:53Z
Modified
2025-01-14T08:57:32.355272Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2020-10-29T08:15:00Z",
    "github_reviewed_at": "2021-04-20T17:46:27Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-1321",
        "CWE-915"
    ]
}
References

Affected packages

npm / chart.js

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.4