MODERATE 6.1

CVE-2026-45249

Apache ECharts has a cross-site scripting (XSS) vulnerability

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.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.mvnpm » echartsvia npm echarts
< 6.1.0
6.1.0
org.webjars » echartsvia npm echarts
< 6.1.0
6.1.0
org.webjars.npm » echartsvia npm echarts
< 6.1.0
6.1.0

Blast radius

3affected artifacts
47affected versions
285dependent artifacts (est.)
16,259dependent versions

31% of the dependent artifacts (89) still pull an affected version in their latest release.

DepthDependent versions
Direct
357
2 hops
355
3 hops
5,982
4 hops
7,601
5 hops
1,712
6 hops
252

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) . See all on OSV

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webgithub.com
Webecharts.apache.org
Webecharts.apache.org
Weblists.apache.org
Webopenwall.com