CVE-2020-7746:
Prototype pollution in chart.js
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.37159%
CWE
Published
5/10/2021
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
chart.js | npm | < 2.9.4 | 2.9.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability centers around prototype pollution during options merging. While no direct patch diffs are provided, all advisory descriptions consistently identify the root cause as unsafe deep merging in options processing. Chart.js
' helper merge()
functions are the logical location for this vulnerable operation, as they handle configuration
merging. The high-confidence entry reflects the core merge
utility directly handling object assignments, while the medium-confidence entry covers configuration
-specific merging that would leverage the same vulnerable pattern. These functions would appear in stack traces when processing malicious options payloads.