Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker supplies HTML payload in Lines series name field
-
DeliveryApplication stores or proxies unsanitized name into series.data
-
ExploitVictim loads page rendering ECharts Lines chart
-
ExecutionVictim hovers over data point triggering built-in tooltip
-
PersistECharts inserts raw name via innerHTML into tooltip DOM
-
ImpactInjected script executes in victim's browser session
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 | Exploitation requires all four of the following conditions to be simultaneously true: (1) the application uses the ECharts Lines series type (series.type = 'lines'); (2) tooltip is enabled (tooltip.trigger is set and tooltip is not disabled); (3) no user-specified tooltip.formatter is provided for the affected series, so the vulnerable built-in formatter is used; (4) at least one entry in series.data has a name field whose value is influenced by attacker-controlled input - such as user-submitted data, external API data, or URL parameters - that has not been HTML-escaped before being passed to ECharts. Exploitation is further limited by the requirement for user interaction (UI:R): the victim must cause the tooltip to appear, typically by hovering over the data point. Applications that do not use the Lines series, that always supply a custom tooltip.formatter, or that sanitize data before passing it to ECharts are not exploitable. Authentication is not a limiting factor - the CVSS vector PR:N confirms the attack does not require the attacker to be authenticated to the target application. |
| Impact | CVSS 6.1 (Medium) with vector AV:N/AC:L/PR:N/UI:R/S:C reflects a network-reachable, low-complexity, unauthenticated attack that requires a single user interaction (hovering over or triggering the tooltip) and achieves cross-scope impact on confidentiality and integrity. The Scope:Changed indicator reflects browser context escape - injected script runs in the victim's browser session rather than just the chart canvas. However, multiple signals converge on lower real-world priority: EPSS at 0.03% (10th percentile) indicates minimal observed exploitation; SSVC classification shows Exploitation: none and Automatable: no, consistent with the UI:R requirement; the vulnerability is not listed in CISA KEV. The critical limiting condition is that the application must accept attacker-controlled data into series.data[i].name without server-side sanitization - a design choice that is common in data-driven dashboards but not universal. Applications that sanitize user-supplied strings before passing them to ECharts are not exploitable. Overall, this is a genuine medium-severity finding warranting patch prioritization in the next maintenance cycle, but it does not justify emergency response absent evidence of active exploitation or a confirmed attacker-controlled data path in a specific deployment. |
| Exploit ScenarioDerived | An attacker who can influence data that an application loads into a Lines series chart - for example, via a user-editable label field stored in a database, a third-party API response, or a URL parameter - sets a series.data[i].name value to a malicious HTML payload such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Cross-site scripting in Apache ECharts before 6.1.0 allows remote unauthenticated attackers to inject and execute arbitrary HTML and JavaScript in a victim's browser via the Lines series tooltip rendering path. When an application uses the Lines series with tooltips enabled, omits a custom tooltip.formatter, and populates series.data[i].name with attacker-influenced data, ECharts passes the raw name string through an innerHTML sink rather than applying the HTML escaping that all other built-in tooltip formatters perform. No public exploit is identified at time of analysis and EPSS is 0.03% (10th percentile), but the GitHub PR fixing this issue includes a working test case demonstrating script execution via a crafted name payload.
RemediationAI
Upgrade Apache ECharts to version 6.1.0, which contains the fix committed in GitHub PR #21608 (https://github.com/apache/echarts/pull/21608). This is the primary and recommended remediation per the Apache advisory at https://lists.apache.org/thread/1g6xk7gd9vg1c6zyqqt2lnko10zomc3o. If an immediate upgrade is not feasible, a targeted workaround is to supply a custom tooltip.formatter for any Lines series that renders user-influenced data - since custom formatters are responsible for their own output and can perform explicit HTML escaping (e.g., using a utility such as DOMPurify or a simple entity-encoder), this prevents the vulnerable built-in path from executing. A second workaround is to sanitize all values assigned to series.data[i].name on the server side before they reach the browser, stripping or encoding HTML characters; this adds defense-in-depth regardless of upgrade status but requires discipline across all data pipelines. Disabling tooltips globally is effective but eliminates useful UX. The Apache security best-practices guide at https://echarts.apache.org/handbook/en/best-practices/security/#passing_raw_html_safely provides additional guidance on safe HTML handling in ECharts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache ECharts is an open-source JavaScript visualization library (CPE: cpe:2.3:a:apache_software_foundation:apache_echarts:*:*:*:*:*:*:*:*). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically an innerHTML sink in the Lines series tooltip formatting code in src/chart/lines/LinesSeries.ts. Prior to the fix in PR #21608, the getDefaultTooltipContent method returned series.data[i].name directly as a raw string, which the tooltip subsystem then injected via innerHTML without sanitization. All other built-in ECharts tooltip formatters apply HTML escaping by convention, but the Lines series code path lacked this step, creating an inconsistency that constitutes the vulnerability. The fix restructures the returned data object to include explicit name and value fields, enabling proper downstream escaping. The affected Lines series is used to render polyline or route data on geographic or Cartesian coordinate systems and is commonly used in map-overlay visualizations.
Know when Apache Echarts gets its next vulnerability
- 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:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (apache) · only source for this CVE.
CVSS VectorVendor: apache
Lifecycle Timeline
3DescriptionCVE.org
A cross-site scripting (XSS) vulnerability exists in Apache ECharts in the Lines series tooltip rendering logic.
This issue affects Apache ECharts: from before 6.1.0.
In versions prior to 6.1.0, if both Lines series and tooltip are used, and no user-specified tooltip.formatter is provided, and series.data[i].name is specified, raw HTML string series.data[i].name can be rendered through innerHTML sink into tooltip content. Although tooltip is allowed to accept user-provided raw HTML via a custom tooltip.formatter, the built-in tooltip formatters conventionally perform HTML escaping automatically. This case breaks that convention and may unexpectedly lead to script execution when tooltips are displayed.
Users are recommended to upgrade to version 6.1.0 if using the Lines series in this way, which fixes the issue.
Blast Radius
ecosystem impact- 1,283 npm packages depend on echarts (751 direct, 548 indirect)
Ecosystem-wide dependent count for version 6.1.0.
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-31650
GHSA-fgmj-fm8m-jvvx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB