CVE-2026-94402
IBM vulnerable to cross-site scripting (XSS) via unsanitized title truncation
- Medium 6.1
Description
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.
Key facts
- Published
- 20 Oct 2026
- Last changed
- 26 Oct 2026
- Assigned by
- ibm
- EPSS
- 0.248% likely to be exploited in the next 30 days, higher than 16.217% of CVEs (scores for 17 Nov 2026)
- SSVC (CISA)
- Exploitation: none; Automatable: no; Technical impact: partial
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 6.1CVSS 3.1, Mediumfrom the CNA (ibm)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What to do
- Please update the library to the latest version available on npm: https://www.npmjs.com/package/@carbon/chartsCNA solution statement
- 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.CNA workaround statement
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| IBM | @carbon/charts |
|
| IBM | @carbon/charts-react |
|
| IBM | @carbon/charts-angular |
|
| IBM | @carbon/charts-vue |
|
| IBM | @carbon/charts-svelte |
|
Timeline
- 20 Oct 2026 Published
Weakness
Practice this bug class
HackZoneLabs has a hands-on lab on XSS (stored, reflected, DOM) (CWE-79).