CVE-2026-45249Apache Echarts Cross-site Scripting (XSS)
NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vulnerability Summary
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.
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.
CVSS v3.1 Base Metrics — Score 6.1 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone
Affected & Patched Versions
- Apache Echarts < 6.1.0
- Apache Software Foundation Apache ECharts < 6.1.0
- Apache Echarts 6.1.0
- Apache Software Foundation Apache ECharts 6.1.0
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Apache Echarts and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- May 25, 2026Published
- Jul 23, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Apache Echarts CVEsYou are reading CVE-2026-45249. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://echarts.apache.org/en/option.html#series-lines
- Vendor Advisoryhttps://echarts.apache.org/handbook/en/best-practices/security/#passing_raw_html_safely
- Patchhttps://github.com/apache/echarts/pull/21608
- Vendor Advisoryhttps://lists.apache.org/thread/1g6xk7gd9vg1c6zyqqt2lnko10zomc3o
- Advisoryhttp://www.openwall.com/lists/oss-security/2026/05/23/4
Data last checked: Nov 27, 2026 08:11 UTC