{"id":"CVE-2026-41518","sourceIdentifier":"security-advisories@github.com","published":"2026-06-04T20:16:57.960","lastModified":"2026-06-17T10:46:49.690","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"chartbrew","product":"chartbrew","versions":[{"version":">= 4.9.0, < 5.0.1","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","baseScore":7.6,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.3,"impactScore":4.7}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-06-05T19:33:37.956153Z","id":"CVE-2026-41518","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-79"}]}],"references":[{"url":"https://github.com/chartbrew/chartbrew/security/advisories/GHSA-6q2j-365c-7gqf","source":"security-advisories@github.com"},{"url":"https://github.com/chartbrew/chartbrew/security/advisories/GHSA-6q2j-365c-7gqf","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}