{"id":"CVE-2026-41518","aliases":["CVE-2026-41518"],"related":[],"kind":"vulnerability","state":"published","title":"Chartbrew has a stored DOM XSS via Chart Tooltip innerHTML (ChartDatasetConfig.legend)","summary":"Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. In versions 4.9.0 through 5.0.0, an authenticated user with project-editor permissions can store arbitrary HTML/JavaScript in the `ChartDatasetConfig.legend` field. The payload is persisted verbatim in the database, propagated through the Chart.js rendering pipeline, and injected into the tooltip DOM element via an unguarded `innerHTML` assignment in `ChartTooltip.js`. Every unauthenticated viewer of the public dashboard triggers JavaScript execution on page load — no hover interaction is required. Browser-based Playwright verification confirmed `alert('localhost')` fires immediately and `<img src=\"x\" onerror=\"alert(document.domain)\">` is present in the `#chartjs-tooltip` DOM element. Version 5.0.1 contains a fix.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. In versions 4.9.0 through 5.0.0, an authenticated user with project-editor permissions can store arbitrary HTML/JavaScript in the `ChartDatasetConfig.legend` field. The payload is persisted verbatim in the database, propagated through the Chart.js rendering pipeline, and injected into the tooltip DOM element via an unguarded `innerHTML` assignment in `ChartTooltip.js`. Every unauthenticated viewer of the public dashboard triggers JavaScript execution on page load — no hover interaction is required. Browser-based Playwright verification confirmed `alert('localhost')` fires immediately and `<img src=\"x\" onerror=\"alert(document.domain)\">` is present in the `#chartjs-tooltip` DOM element. Version 5.0.1 contains a fix.","source":"cvelist"}],"published":"2026-06-04T19:28:55.627Z","modified":"2026-06-17T10:46:49.690Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":7.6,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 4.9.0, < 5.0.1","status":"affected"}],"vendor":"chartbrew","product":"chartbrew","source":"cvelist"}],"references":[{"url":"https://github.com/chartbrew/chartbrew/security/advisories/GHSA-6q2j-365c-7gqf","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-05T19:33:37.956Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41518","url":"https://www.cve.org/CVERecord?id=CVE-2026-41518","licence":"CVE Terms of Use","modified":"2026-06-05T19:34:10.557Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41518","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41518","licence":"Public domain","modified":"2026-06-17T10:46:49.690Z"}],"updatedAt":"2026-11-25T22:59:23.724Z","epss":{"score":0.00243,"percentile":0.16626,"date":"2026-12-01T12:00:22.000Z"}}