What’s Vulnerable › Vulnerabilities

CVE-2021-29489: Options structure open to XSS if passed unfiltered

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 products

How to fix

Upgrade to a fixed version: highcharts 9.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-29489 or the next vulnerability affects your stack