{"id":"CVE-2021-29489","aliases":["CVE-2021-29489","GHSA-8j65-4pcq-xq95"],"related":[],"kind":"vulnerability","state":"published","title":"Options structure open to XSS if passed unfiltered","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nIn 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. Especially when using the `useHTML` flag, HTML string options would be inserted unfiltered directly into the DOM. When `useHTML` was false, malicious code could be inserted by using various character replacement tricks or malformed HTML.\n\nIf your chart configuration comes from a trusted source like a static setup or pre-filtered HTML (or no markup at all in the configuration), you are not impacted.\n\n### Patches\nIn version 9, the whole rendering layer was refactored to use an DOMParser, an AST and tag and HTML allow-listing to make sure only safe content entered the DOM. In addition, prototype pollution was stopped.\n\n### Workarounds\nImplementers who are not able to upgrade may apply [DOMPurify](https://github.com/cure53/DOMPurify) recursively [to the options structure](https://jsfiddle.net/highcharts/zd3wcm5L/) to filter out malicious markup.\n\n### References\n* Details on the improved [Highcharts security](https://www.highcharts.com/docs/chart-concepts/security)\n* [The AST and TextBuilder refactoring](https://github.com/highcharts/highcharts/pull/14913)\n* [The fix for prototype pollution](https://github.com/highcharts/highcharts/pull/14884)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Visit our [support page](https://www.highcharts.com/blog/support/)\n* For more Email us at [security@highcharts.com](mailto:security@highcharts.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Highcharts JS es una biblioteca de gráficos de JavaScript basada en SVG.&#xa0;En Highcharts versiones 8 y anteriores, la estructura de opciones de gráficos no se filtraba sistemáticamente para vectores de tipo XSS.&#xa0;El impacto potencial fue que el contenido de fuentes no confiables podría ejecutar código en el navegador del usuario final.&#xa0;La vulnerabilidad está parcheada en versión 9. Como solución alternativa, los implementadores que no son capaces de actualizar pueden aplicar DOMPurify de forma recursiva a la estructura de opciones para filtrar el marcado malicioso","source":"nvd"}],"published":"2021-05-05T15:30:18.000Z","modified":"2026-07-08T06:29:26.405Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 9.0.0","status":"affected"}],"vendor":"highcharts","product":"highcharts","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.0.0"}],"ecosystem":"npm","package":"highcharts","purl":"pkg:npm/highcharts","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.0.0"}],"vendor":"highcharts","product":"highcharts","cpe":"cpe:2.3:a:highcharts:highcharts:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"cloud_backup","cpe":"cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_insight","cpe":"cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_workflow_automation","cpe":"cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"snapcenter","cpe":"cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210622-0005/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29489","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/highcharts/highcharts","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210622-0005","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/highcharts","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29489","url":"https://www.cve.org/CVERecord?id=CVE-2021-29489","licence":"CVE Terms of Use","modified":"2024-08-03T22:11:05.477Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8j65-4pcq-xq95","url":"https://github.com/advisories/GHSA-8j65-4pcq-xq95","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:26.405Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29489","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29489","licence":"Public domain","modified":"2026-06-17T03:47:44.890Z"}],"updatedAt":"2026-11-25T22:58:01.143Z","epss":{"score":0.00867,"percentile":0.5639,"date":"2026-11-30T12:00:22.000Z"}}