CVE-2026-94402IBM vulnerable to cross-site scripting (XSS) via unsanitized title truncation
IBM Carbon Charts 0.4.0 through 1.27.19 is vulnerable to cross-site scripting. The MeterChart component's Title.truncateTitle() function re-inserts a substring of user-supplied label text into the DOM via an unsanitized innerHTML write when the title exceeds the available container width. A remote attacker could exploit this vulnerability to execute arbitrary JavaScript in the victim's browser session.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by ibm, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- IBM @carbon/charts: affected: 0.4.0 to 1.27.19
- IBM @carbon/charts-react: affected: 0.4.0 to 1.27.19
- IBM @carbon/charts-angular: affected: 0.4.0 to 1.27.19
- IBM @carbon/charts-vue: affected: 0.4.0 to 1.27.19
- IBM @carbon/charts-svelte: affected: 0.4.0 to 1.27.19
Solution: Please update the library to the latest version available on npm: https://www.npmjs.com/package/@carbon/charts
Workaround: If an immediate upgrade to v1.27.20 is not possible, consuming applications should sanitize all user-influenced strings before passing them as data[0].group (or any label field) to a MeterChart. A DOMPurify call with ALLOWED_TAGS: [] applied to the value before it reaches the chart data will neutralize the payload. This is a temporary workaround only — upgrading to v1.27.20 remains the recommended remediation.
Vendor advisories:
- https://www.ibm.com/support/pages/node/7291785 (patch, vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.