{"id":"CVE-2026-94402","kind":"vulnerability","aliases":["CVE-2026-94402"],"related":[],"title":"IBM Carbon Charts: MeterChart titles let attackers run script in browsers","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.","summary":"IBM Carbon Charts versions 0.4.0 through 1.27.19 insert user-supplied label text into the page through innerHTML without sanitizing it when a MeterChart title is too wide for its container. An attacker who gets such a label into a chart can run JavaScript in the browser session of anyone who views it.","severity":"medium","cvss":6.1,"epss":0.00302,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["carbon-charts","frontend","javascript","package","web-apps"],"not_affected_if":["no-meterchart","static-labels"],"how_to_check":"- Check the installed `@carbon/charts` or `@carbon/charts-react` version in `package.json` and the lockfile; affected range is `0.4.0` through `1.27.19`.\n- Search the codebase for `MeterChart` usage where the title or labels come from user input.","fix":"- Upgrade `@carbon/charts` past `1.27.19` (fixed version unknown from the sources; check the IBM advisory).\n- Until upgraded, do not pass untrusted text into MeterChart titles or labels.","status":"open","published_at":"2026-10-20T22:21:07+00:00","first_seen_at":"2026-10-23T21:57:27+00:00","triaged_at":"2026-10-25T04:03:31+00:00","updated_at":"2026-10-25T04:03:31+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-25T04:03:31Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade `@carbon/charts` past `1.27.19` (fixed version unknown from the sources; check the IBM advisory).\n- Until upgraded, do not pass untrusted text into MeterChart titles or labels.","reach":"internet","title":"IBM Carbon Charts: MeterChart titles let attackers run script in browsers","impact":"medium","summary":"IBM Carbon Charts versions 0.4.0 through 1.27.19 insert user-supplied label text into the page through innerHTML without sanitizing it when a MeterChart title is too wide for its container. An attacker who gets such a label into a chart can run JavaScript in the browser session of anyone who views it.","category":"package","nicknames":[],"who_cares":["carbon-charts","javascript","frontend","web-apps"],"confidence":0.6,"needs_auth":"unknown","worst_case":"Attacker runs JavaScript in victim's browser session on the app","analyst_note":"Confirm the fixed version and whether user-supplied labels reach MeterChart titles; see the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-94402.","how_to_check":"- Check the installed `@carbon/charts` or `@carbon/charts-react` version in `package.json` and the lockfile; affected range is `0.4.0` through `1.27.19`.\n- Search the codebase for `MeterChart` usage where the title or labels come from user input.","needs_analyst":true,"not_affected_if":["static-labels","no-meterchart"],"who_is_affected":"Applications that render MeterChart from the Carbon Charts library with titles or labels that contain user-supplied text are exposed. Teams that only use static, developer-written chart labels, or do not use MeterChart, can skip it.","user_interaction":"yes","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000665,"input_tokens":3402,"output_tokens":649,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2026':13A,16A '-94402':14A,17A '0.4.0':31B,82C '1.27.19':33B,84C 'anyon':76B 'app':26B 'arbitrari':134C 'attack':7A,59B,127C 'avail':122C 'browser':11A,73B,140C 'carbon':2A,19B,28B,80C 'carbon-chart':18B 'chart':3A,20B,29B,67B,81C 'compon':94C 'contain':57B,123C 'could':128C 'cross':89C 'cross-sit':88C 'cve':12A,15A 'dom':111C 'exceed':120C 'execut':133C 'exploit':129C 'frontend':21B 'function':97C 'get':61B 'ibm':1A,27B,79C 'innerhtml':44B,115C 'insert':34B,100C 'javascript':22B,70B,135C 'label':38B,64B,107C 'let':6A 'meterchart':4A,50B,93C 'packag':23B 'page':42B 're':99C 're-insert':98C 'remot':126C 'run':8A,69B 'sanit':46B 'script':9A,91C 'session':74B,141C 'site':90C 'substr':102C 'suppli':37B,106C 'text':39B,108C 'titl':5A,51B,119C 'title.truncatetitle':96C 'unsanit':114C 'user':36B,105C 'user-suppli':35B,104C 'version':30B 'via':112C 'victim':138C 'view':78B 'vulner':86C,131C 'web':25B 'web-app':24B 'wide':54B 'width':124C 'without':45B 'write':116C","nicknames":[],"mitigations":[],"who_affected":"Applications that render MeterChart from the Carbon Charts library with titles or labels that contain user-supplied text are exposed. Teams that only use static, developer-written chart labels, or do not use MeterChart, can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-20T22:21:07+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","cvss_by":"psirt@us.ibm.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-94402","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-94402","severity":null,"published_at":"2026-10-20T22:21:07+00:00","modified_at":"2026-10-21T14:27:54+00:00","first_seen_at":"2026-10-23T21:57:27+00:00","fetched_at":"2026-10-23T22:29:01+00:00","note":null},{"source":"epss","external_id":"CVE-2026-94402","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-94402","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-24T13:15:55+00:00","fetched_at":"2026-10-24T13:15:55+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}