High severity · published Jun 4, 2026
CVE-2026-41518
Chartbrew has a stored DOM XSS via Chart Tooltip innerHTML (ChartDatasetConfig.legend)
7.6
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
High
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 10% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CH
chartbrew · chartbrew
>= 4.9.0, < 5.0.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-41518
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-41518
github.com
https://github.com/chartbrew/chartbrew/security/advisories/GHSA-6q2j-365c-7gqf
More from chartbrew
9.8
CVE-2026-27005
Chartbrew: SQL injection in date-type variable handling (applyMysqlOrPostgresVariables)
9.6
CVE-2026-30232
Chartbrew has SSRF in API Data Connection - No IP Validation on User-Provided URLs
8.8
CVE-2026-25888
Chartbrew: Remote Code Execution (RCE) via Vulnerable API
8.1
CVE-2026-40600
Chartbrew: Incorrect Access Control in project share policy routes via unbound policy_id
8.1
CVE-2026-40904
Chartbrew: Incorrect Access Control in dataset and dataRequest routes via team-scoped permission checks
