CVE-2026-41518: Chartbrew has a stored DOM XSS via Chart Tooltip innerHTML (ChartDatasetConfig.legend)

Published Jun 4, 2026
·
Updated

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.

Affected Software

1 affected component
Chartbrew Chartbrew>=4.9.0<=5.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Chartbrew to a version that resolves this vulnerability.

    Fixed in 5.0.1

Event History

Jun 4, 2026
CVE Published
via MITRE·07:28 PM
Data Sourced
via MITRE·07:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-41518?

The severity of CVE-2026-41518 is classified as high with a score of 7.6.

2

How do I fix CVE-2026-41518?

To fix CVE-2026-41518, upgrade to Chartbrew version 5.0.1 or later.

3

What type of vulnerability is CVE-2026-41518?

CVE-2026-41518 is a stored DOM XSS vulnerability.

4

Who is affected by CVE-2026-41518?

Authenticated users with project-editor permissions in Chartbrew versions 4.9.0 through 5.0.0 are affected by CVE-2026-41518.

5

What can an attacker do with CVE-2026-41518?

An attacker can store arbitrary HTML/JavaScript in the ChartDatasetConfig.legend field, potentially leading to malicious script execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203