IBM vulnerable to cross-site scripting (XSS) via unsanitized title truncation
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| IBM | @carbon/charts | affected |
|
||||||
| IBM | @carbon/charts-react | affected |
|
||||||
| IBM | @carbon/charts-angular | affected |
|
||||||
| IBM | @carbon/charts-vue | affected |
|
||||||
| IBM | @carbon/charts-svelte | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ibm | Carbon Charts |
|
||||||||
| Ibm | Carboncharts Angular |
|
||||||||
| Ibm | Carboncharts React |
|
||||||||
| Ibm | Carboncharts Svelte |
|
||||||||
| Ibm | Carboncharts Vue |
|
Vendor Solution
Please update the library to the latest version available on npm: https://www.npmjs.com/package/@carbon/charts
Vendor 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.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.248% probability within 30 days)
| Link | Providers |
|---|---|
| https://www.ibm.com/support/pages/node/7291785 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | IBM vulnerable to cross-site scripting (XSS) via unsanitized title truncation | |
| First Time appeared |
Ibm
Ibm carbon Charts Ibm carboncharts Angular Ibm carboncharts React Ibm carboncharts Svelte Ibm carboncharts Vue |
|
| Weaknesses | CWE-79 | |
| CPEs | cpe:2.3:a:ibm:carbon_charts:0.4.0:*:*:*:*:*:*:* cpe:2.3:a:ibm:carbon_charts:1.27.19:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_angular:0.4.0:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_angular:1.27.19:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_react:0.4.0:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_react:1.27.19:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_svelte:0.4.0:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_svelte:1.27.19:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_vue:0.4.0:*:*:*:*:*:*:* cpe:2.3:a:ibm:carboncharts_vue:1.27.19:*:*:*:*:*:*:* |
|
| Vendors & Products |
Ibm
Ibm carbon Charts Ibm carboncharts Angular Ibm carboncharts React Ibm carboncharts Svelte Ibm carboncharts Vue |
|
| References |
| |
| Metrics |
cvssV3_1
|