GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Check your stack
CVE-2026-94402medium6.1

IBM vulnerable to cross-site scripting (XSS) via unsanitized title truncation

Impact

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.

Source excerpt · ibm

What to do

Please update the library to the latest version available on npm:  https://www.npmjs.com/package/@carbon/charts

ibm guidance

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.

ibm guidance

Affected packages

This source has no supported package-version data for matching. You can read the advisory here, but this record alone cannot power a dependency check.

Affected products

Vendor version evidence. Product records are separate from automatic dependency matching.

IBM · @carbon/charts

Version / rangeSource status
0.4.0 through 1.27.19 (inclusive)affected
ibm version evidence

IBM · @carbon/charts-react

Version / rangeSource status
0.4.0 through 1.27.19 (inclusive)affected
ibm version evidence

IBM · @carbon/charts-angular

Version / rangeSource status
0.4.0 through 1.27.19 (inclusive)affected
ibm version evidence

IBM · @carbon/charts-vue

Version / rangeSource status
0.4.0 through 1.27.19 (inclusive)affected
ibm version evidence

IBM · @carbon/charts-svelte

Version / rangeSource status
0.4.0 through 1.27.19 (inclusive)affected
ibm version evidence

Original source 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.

References