Skip to main content
Vulnerability Database/CVE-2026-94402

CVE-2026-94402: IBM Carbon Charts XSS Vulnerability

CVE-2026-94402 is a cross-site scripting flaw in IBM Carbon Charts that enables attackers to inject malicious JavaScript through unsanitized DOM manipulation. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-94402 Overview

CVE-2026-94402 is a cross-site scripting (XSS) vulnerability affecting IBM Carbon Charts versions 0.4.0 through 1.27.19. The flaw resides in the MeterChart component, specifically within the Title.truncateTitle() function. When a chart title exceeds the available container width, the function re-inserts a substring of user-supplied label text into the Document Object Model (DOM) through an unsanitized innerHTML assignment. A remote attacker can supply a crafted label to execute arbitrary JavaScript within a victim's browser session. The weakness is categorized under CWE-79, Improper Neutralization of Input During Web Page Generation.

Critical Impact

Remote attackers can execute arbitrary JavaScript in a victim's browser, enabling session theft, UI manipulation, and cross-origin data exposure when the chart renders attacker-controlled label text.

Affected Products

  • IBM Carbon Charts 0.4.0 through 1.27.19
  • Applications embedding the MeterChart component from vulnerable Carbon Charts releases
  • Web dashboards and analytics UIs that render untrusted labels through Carbon Charts

Discovery Timeline

  • 2026-10-20 - CVE-2026-94402 published to the National Vulnerability Database
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-94402

Vulnerability Analysis

The vulnerability exists in the title-truncation logic of the MeterChart component. When a title is longer than the container width, the library calculates a visible substring and writes it back into the DOM using innerHTML. Because the input is user-supplied label text, HTML tags and inline event handlers remain active after re-insertion. An attacker supplies a crafted label such as a long string containing an <img> tag with an onerror handler. When truncation triggers, the browser parses the fragment and executes the attached script in the application's origin.

Since the issue is triggered by rendering logic, exploitation requires user interaction, typically loading a page where the chart renders attacker-controlled data. The scope is changed because the executed script runs in the embedding application's origin, outside the vulnerable component's isolated boundary.

Root Cause

The root cause is the use of innerHTML to write user-controlled text instead of textContent or an equivalent safe sink. The truncateTitle() function treats the label as HTML markup rather than inert text. Any sanitization applied upstream is bypassed because truncation re-serializes a raw substring directly into the DOM.

Attack Vector

Exploitation is network-based and requires that a victim visit or render a page containing a MeterChart whose title binds to attacker-controlled data. Common data flows include multi-tenant dashboards, support ticket viewers, telemetry consoles, and admin panels where one user's labels are visible to another. The attacker crafts a label long enough to trigger truncation and containing an executable HTML payload. Successful exploitation yields script execution with the privileges of the viewing user. Technical details are available on the IBM Support Page.

No verified proof-of-concept code is published. The vulnerability can be reproduced by binding a long HTML-bearing string to a MeterChart title in a vulnerable Carbon Charts build and loading the chart in a browser.

Detection Methods for CVE-2026-94402

Indicators of Compromise

  • Chart title or label fields in stored data containing HTML tags such as <img>, <svg>, <script>, or inline on* event handler attributes.
  • Browser console errors referencing failed image loads from MeterChart renders, which may indicate onerror payload execution.
  • Outbound HTTP requests from browser sessions to attacker-controlled hosts shortly after a dashboard loads.

Detection Strategies

  • Perform a software composition analysis (SCA) scan of front-end dependencies to flag @carbon/charts or carbon-components-charts versions between 0.4.0 and 1.27.19.
  • Deploy Content Security Policy (CSP) reporting to capture inline script violations originating from chart components.
  • Review application logs for user-submitted label or title values containing angle brackets or event handler syntax.

Monitoring Recommendations

  • Monitor browser telemetry and CSP violation reports for script execution tied to chart container DOM nodes.
  • Alert on anomalous outbound requests from authenticated dashboard sessions to untrusted domains.
  • Track dependency manifests in CI/CD pipelines to detect reintroduction of vulnerable Carbon Charts versions.

How to Mitigate CVE-2026-94402

Immediate Actions Required

  • Upgrade IBM Carbon Charts to a fixed release above 1.27.19 as directed by the IBM Support Page.
  • Inventory all applications embedding MeterChart and prioritize updates in multi-tenant or externally exposed dashboards.
  • Sanitize or strip HTML from user-supplied label and title fields before persisting or binding them to chart components.

Patch Information

IBM has published remediation guidance on the IBM Support Page for CVE-2026-94402. Consult that advisory for the specific fixed version and upgrade path applicable to your deployment. Rebuild and redeploy front-end bundles after upgrading the @carbon/charts dependency.

Workarounds

  • Server-side sanitize chart label inputs using an allowlist that strips HTML tags and event handler attributes before data reaches the browser.
  • Enforce a strict Content Security Policy that disallows inline scripts and inline event handlers to blunt XSS payload execution.
  • Constrain label lengths at the input layer so titles do not exceed the container width and avoid triggering the vulnerable truncation path.
bash
# Upgrade the vulnerable dependency in a Node.js project
npm ls @carbon/charts
npm install @carbon/charts@latest
npm audit --production

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.