Miggo Logo

CVE-2020-7746:
Prototype pollution in chart.js

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.37159%
Published
5/10/2021
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
chart.jsnpm< 2.9.42.9.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T*is *****ts t** p**k*** ***rt.js ***or* *.*.*. T** options p*r*m*t*r is not prop*rly s*nitiz** w**n it is pro**ss**. W**n t** options *r* pro**ss**, t** *xistin* options (or t** ****ults options) *r* ***ply m*r*** wit* provi*** options. *ow*v*r, *ur

Reasoning

T** vuln*r**ility **nt*rs *roun* prototyp* pollution *urin* options m*r*in*. W*il* no *ir**t p*t** *i**s *r* provi***, *ll **visory **s*riptions *onsist*ntly i**nti*y t** root **us* *s uns*** ***p m*r*in* in options pro**ssin*. `***rt.js`' **lp*r `m*