Vulnerability · Published May 5, 2021 · Assigned by GitHub_M
CVE-2021-29489Options structure open to XSS if passed unfiltered
High 7.6
In plain English
A high-severity cross-site scripting in highcharts from highcharts. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Highcharts JS is a JavaScript charting library based on SVG. In Highcharts versions 8 and earlier, the chart options structure was not systematically filtered for XSS vectors. The potential impact was that content from untrusted sources could execute code in the end user's browser. The vulnerability is patched in version 9. As a workaround, implementers who are not able to upgrade may apply DOMPurify recursively to the options structure to filter out malicious markup.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | highcharts | 9.0.0 | GHSA-8j65-4pcq-xq95 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| highcharts | highcharts | < 9.0.0 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
References
- https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95 x_refsource_CONFIRM
- https://security.netapp.com/advisory/ntap-20210622-0005/ x_refsource_CONFIRM