Miggo Logo

CVE-2021-29489: Options structure open to Cross-site Scripting if passed unfiltered

7.6

CVSS Score
3.1

Basic Information

EPSS Score
0.30842%
Published
5/6/2021
Updated
1/29/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
highchartsnpm< 9.0.09.0.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unsanitized processing of the options structure. Key indicators are: 1) The 'useHTML' flag's direct DOM insertion path 2) Character replacement tricks implying text node injection vectors 3) The systemic lack of AST-based filtering pre-v9. The rendering layer's TextBuilder and core chart initialization would handle these untrusted inputs. While exact function names aren't explicitly listed in advisories, Highcharts' architecture and vulnerability patterns indicate these components as primary XSS injection points.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t In *i*****rts v*rsions * *n* **rli*r, t** ***rt options stru*tur* w*s not syst*m*ti**lly *ilt*r** *or XSS v**tors. T** pot*nti*l imp**t w*s t**t *ont*nt *rom untrust** sour**s *oul* *x**ut* *o** in t** *n* us*r's *rows*r. *sp**i*lly w**n u

Reasoning

T** vuln*r**ility st*ms *rom uns*nitiz** pro**ssin* o* t** options stru*tur*. K*y in*i**tors *r*: *) T** 'us**TML' *l**'s *ir**t *OM ins*rtion p*t* *) ***r**t*r r*pl***m*nt tri*ks implyin* t*xt no** inj**tion v**tors *) T** syst*mi* l**k o* *ST-**s**