Wiz Agents & Workflows are here

CVE-2021-29489
JavaScript vulnerability analysis and mitigation

Overview

Highcharts JS, a JavaScript charting library based on SVG, contained a cross-site scripting (XSS) vulnerability in versions 8 and earlier (CVE-2021-29489). The vulnerability was discovered when the chart options structure was not systematically filtered for XSS vectors. The issue was patched in version 9 (GitHub Advisory).

Technical details

The vulnerability existed because HTML string options would be inserted unfiltered directly into the DOM, especially when using the useHTML flag. Even when useHTML was false, malicious code could be inserted through various character replacement tricks or malformed HTML. The vulnerability received a CVSS v3.1 base score of 5.4 (MEDIUM) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

When successfully exploited, the vulnerability could allow content from untrusted sources to execute code in the end user's browser. If chart configuration came from untrusted sources, attackers could potentially inject malicious markup leading to XSS attacks (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in Highcharts version 9, where the entire rendering layer was refactored to use a DOMParser, an AST, and tag and HTML allow-listing to ensure only safe content entered the DOM. For users unable to upgrade, a workaround was provided to apply DOMPurify recursively to the options structure to filter out malicious markup (GitHub Advisory, NetApp Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34156CRITICAL9.9
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-javascript
NoYesMar 30, 2026
CVE-2026-34363HIGH8.2
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026
CVE-2026-33949HIGH8.1
  • JavaScriptJavaScript
  • @tinacms/graphql
NoYesMar 30, 2026
CVE-2026-34043MEDIUM5.9
  • JavaScriptJavaScript
  • serialize-javascript
NoYesMar 31, 2026
CVE-2026-34373MEDIUM5.3
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management